[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Fix the python type dismatch exception when HVM restore



# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
# Date 1174039557 0
# Node ID 487e37c22b288cb8108971d94923074ef7e9c72e
# Parent  cd8d2a4d46e44dd91fbd7eee3a4553dc9633a9cc
Fix the python type dismatch exception when HVM restore

Signed-off-by: Zhai Edwin <edwin.zhai@xxxxxxxxx>
---
 tools/python/xen/xend/XendCheckpoint.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r cd8d2a4d46e4 -r 487e37c22b28 tools/python/xen/xend/XendCheckpoint.py
--- a/tools/python/xen/xend/XendCheckpoint.py   Thu Mar 15 23:03:22 2007 +0000
+++ b/tools/python/xen/xend/XendCheckpoint.py   Fri Mar 16 10:05:57 2007 +0000
@@ -193,8 +193,8 @@ def restore(xd, fd, dominfo = None, paus
     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:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.