bitkeeper revision 1.1159.194.4 (41a5e757kS3W0lQ0UXkviQYcgBr7Gg)

XendDomainInfo.py:
  Fix check for no configured block devices.
This commit is contained in:
cl349@arcadians.cl.cam.ac.uk committed 2004-11-25 14:08:23 +00:00
1 parent a540583964
commit c584b00571
1 file changed
+2 -2
+2 -2
View File
@@ -994,13 +994,13 @@ class XendDomainInfo:
@return: deferred
"""
if (self.get_devices("vbd") == None):
if self.get_devices("vbd") == []:
ctrl = xend.blkif_create(self.dom, recreate=self.recreate)
back = ctrl.getBackendInterface(0)
return back.connect(recreate=self.recreate)
else:
return None
def dom_construct(self, dom, config):
"""Construct a vm for an existing domain.
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.