mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Fix calls to destroyDevice that are missing a force flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
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))
|
||||
|
||||
|
||||