ia64/xen-unstable

changeset 3125:7827d8db3729

bitkeeper revision 1.1159.194.4 (41a5e757kS3W0lQ0UXkviQYcgBr7Gg)

XendDomainInfo.py:
Fix check for no configured block devices.
author cl349@arcadians.cl.cam.ac.uk
date Thu Nov 25 14:08:23 2004 +0000 (2004-11-25)
parents 0ba2b3a250fe
children adbc30fc0f2e 643ec6da4416 47c04a4e4ef4 3aad77958a08
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu Nov 25 14:07:37 2004 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Thu Nov 25 14:08:23 2004 +0000
     1.3 @@ -994,13 +994,13 @@ class XendDomainInfo:
     1.4  
     1.5          @return: deferred
     1.6          """
     1.7 -        if (self.get_devices("vbd") == None):
     1.8 +        if self.get_devices("vbd") == []:
     1.9              ctrl = xend.blkif_create(self.dom, recreate=self.recreate)
    1.10              back = ctrl.getBackendInterface(0)
    1.11              return back.connect(recreate=self.recreate)
    1.12          else:
    1.13              return None
    1.14 -    
    1.15 +
    1.16      def dom_construct(self, dom, config):
    1.17          """Construct a vm for an existing domain.
    1.18