ia64/xen-unstable

changeset 13039:85c1e2383e98

Fix calls to destroyDevice that are missing a force flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Dec 14 15:32:44 2006 +0000 (2006-12-14)
parents d0f682ada0b2
children 5c8522bda629
files tools/python/xen/xend/server/DevController.py
line diff
     1.1 --- a/tools/python/xen/xend/server/DevController.py	Thu Dec 14 15:10:47 2006 +0000
     1.2 +++ b/tools/python/xen/xend/server/DevController.py	Thu Dec 14 15:32:44 2006 +0000
     1.3 @@ -155,13 +155,13 @@ class DevController:
     1.4          status = self.waitForBackend(devid)
     1.5  
     1.6          if status == Timeout:
     1.7 -            self.destroyDevice(devid)
     1.8 +            self.destroyDevice(devid, False)
     1.9              raise VmError("Device %s (%s) could not be connected. "
    1.10                            "Hotplug scripts not working." %
    1.11                            (devid, self.deviceClass))
    1.12  
    1.13          elif status == Error:
    1.14 -            self.destroyDevice(devid)
    1.15 +            self.destroyDevice(devid, False)
    1.16              raise VmError("Device %s (%s) could not be connected. "
    1.17                            "Backend device not found." %
    1.18                            (devid, self.deviceClass))
    1.19 @@ -180,7 +180,7 @@ class DevController:
    1.20              if not err:
    1.21                  err = "Busy."
    1.22                  
    1.23 -            self.destroyDevice(devid)
    1.24 +            self.destroyDevice(devid, False)
    1.25              raise VmError("Device %s (%s) could not be connected.\n%s" %
    1.26                            (devid, self.deviceClass, err))
    1.27