setMemory wants an int, give it

This commit is contained in:
Hugh O. Brock 2006-07-26 18:24:29 -04:00
parent fa4075d84e
commit 8c05691d38

View File

@ -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)