setMemory wants an int, give it
This commit is contained in:
parent
fa4075d84e
commit
8c05691d38
|
@ -274,6 +274,7 @@ class vmmDomain(gobject.GObject):
|
|||
print "If this was implemented, it would set this domain to have " + `vcpus` + " virtual cpus."
|
||||
|
||||
def set_memory(self, memory):
|
||||
memory = int(memory)
|
||||
if(memory > self.maximum_memory()):
|
||||
print "XXX add proper error handling here. You may not set vm memory larger than the maximum set for the vm."
|
||||
self.vm.setMemory(memory)
|
||||
|
|
Loading…
Reference in New Issue