Fix calls to destroyDevice that are missing a force flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-12-14 15:32:44 +00:00
1 parent 4a5cb14abe
commit 5d46b4c636
1 file changed
+3 -3
@@ -155,13 +155,13 @@ class DevController:
status = self.waitForBackend(devid)
if status == Timeout:
self.destroyDevice(devid)
self.destroyDevice(devid, False)
raise VmError("Device %s (%s) could not be connected. "
"Hotplug scripts not working." %
(devid, self.deviceClass))
elif status == Error:
self.destroyDevice(devid)
self.destroyDevice(devid, False)
raise VmError("Device %s (%s) could not be connected. "
"Backend device not found." %
(devid, self.deviceClass))
@@ -180,7 +180,7 @@ class DevController:
if not err:
err = "Busy."
self.destroyDevice(devid)
self.destroyDevice(devid, False)
raise VmError("Device %s (%s) could not be connected.\n%s" %
(devid, self.deviceClass, err))
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.