bitkeeper revision 1.1612 (429c6dd5DZf10_GWDT3DTiTom7Mb1g)

XendDomainInfo.py:
  cpu == 0 is the 1st cpu, allow pinning a domain to it.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-05-31 13:59:49 +00:00
1 parent 6a9d89d758
commit f58df8b759
1 file changed
+1 -1
+1 -1
View File
@@ -555,7 +555,7 @@ class XendDomainInfo:
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 cpu >= 0:
xc.domain_pincpu(self.dom, 0, 1<<int(cpu))
try:
image = sxp.child_value(self.config, 'image')
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.