mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix xm mem-set on non-running domains. Closes bug #934.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
1 parent
f7683bdacd
commit
c322cc7717
1 file changed
+2
-2
@@ -573,8 +573,8 @@ class XendDomainInfo:
|
||||
"""Set the memory target of this domain.
|
||||
@param target: In MiB.
|
||||
"""
|
||||
log.debug("Setting memory target of domain %s (%d) to %d MiB.",
|
||||
self.info['name_label'], self.domid, target)
|
||||
log.debug("Setting memory target of domain %s (%s) to %d MiB.",
|
||||
self.info['name_label'], str(self.domid), target)
|
||||
|
||||
if target <= 0:
|
||||
raise XendError('Invalid memory size')
|
||||
|
||||