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

[Xen-changelog] this patch fixes the bug that when "cpu" is not set in config file,



# HG changeset patch
# User emellor@ewan
# Node ID 11cca45a9a7972d937b3c04fc432733cd218363d
# Parent  52eb8504be717c1ee7371234696bf8fa45b2aea6
this patch fixes the bug that when "cpu" is not set in config file,
control panel complains "Error creating domain - int argument required".
Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx>

diff -r 52eb8504be71 -r 11cca45a9a79 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Thu Sep 22 10:04:30 2005
+++ b/tools/python/xen/xend/image.py    Thu Sep 22 10:09:11 2005
@@ -155,6 +155,8 @@
         if dom <= 0:
             raise VmError('Creating domain failed: name=%s' %
                           self.vm.getName())
+        if cpu is None:
+            cpu = -1;
         log.debug("initDomain: cpu=%d mem_kb=%d ssidref=%d dom=%d", cpu, 
mem_kb, ssidref, dom)
         xc.domain_setcpuweight(dom, cpu_weight)
         xc.domain_setmaxmem(dom, mem_kb)

_______________________________________________
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®.