mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-26 10:03:54 +03:00
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…
x
Reference in New Issue
Block a user