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

[Xen-changelog] [xen-unstable] xend: Fix domain creation.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1238504231 -3600
# Node ID 011f4fbf46b2ffe19a853f3f213befe961df49ff
# Parent  b3daeb123b6fb238483137a1f4d9295e44b749f4
xend: Fix domain creation.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r b3daeb123b6f -r 011f4fbf46b2 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Tue Mar 31 13:30:50 2009 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py   Tue Mar 31 13:57:11 2009 +0100
@@ -2324,9 +2324,9 @@ class XendDomainInfo:
             if weight < 1 or weight > 65535:
                 raise VmError("Cpu weight out of range, valid values are 
within range from 1 to 65535")
 
-            if cap < 0 or cap > dominfo.getVCpuCount() * 100:
+            if cap < 0 or cap > self.getVCpuCount() * 100:
                 raise VmError("Cpu cap out of range, valid range is from 0 to 
%s for specified number of vcpus" %
-                              (dominfo.getVCpuCount() * 100))
+                              (self.getVCpuCount() * 100))
 
         # Test whether the devices can be assigned with VT-d
         pci = self.info["platform"].get("pci")

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