 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] XendDomainInfo.py:
 ChangeSet 1.1613, 2005/05/31 15:01:02+01:00, cl349@xxxxxxxxxxxxxxxxxxxx
        XendDomainInfo.py:
          Should use int(cpu) here to test if it's valid.
        Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>
 XendDomainInfo.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/tools/python/xen/xend/XendDomainInfo.py 
b/tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   2005-05-31 12:03:44 -04:00
+++ b/tools/python/xen/xend/XendDomainInfo.py   2005-05-31 12:03:44 -04:00
@@ -555,7 +555,7 @@
         if self.memory is None:
             raise VmError('missing memory size')
         cpu = sxp.child_value(config, 'cpu')
-        if self.recreate and self.dom and cpu is not None and cpu >= 0:
+        if self.recreate and self.dom and cpu is not None and int(cpu) >= 0:
             xc.domain_pincpu(self.dom, 0, 1<<int(cpu))
         try:
             image = sxp.child_value(self.config, 'image')
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |