Fix the python type dismatch exception when HVM restore

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
This commit is contained in:
Tim Deegan committed 2007-03-16 10:05:57 +00:00
1 parent 194dd03ad6
commit 41aa97afd7
1 file changed
+2 -2
+2 -2
View File
@@ -193,8 +193,8 @@ def restore(xd, fd, dominfo = None, paused = False):
is_hvm = dominfo.info.is_hvm()
if is_hvm:
hvm = dominfo.info['memory_static_min']
apic = dominfo.info['platform'].get('apic', 0)
pae = dominfo.info['platform'].get('pae', 0)
apic = int(dominfo.info['platform'].get('apic', 0))
pae = int(dominfo.info['platform'].get('pae', 0))
log.info("restore hvm domain %d, mem=%d, apic=%d, pae=%d",
dominfo.domid, hvm, apic, pae)
else:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.