mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Don't try and call DevController if we can't destroy a device ourselves,
because we are already inside the ValueError exception handler, so we know that the give device identifier is not an integer, and DevController.destroyDevice only accepts integers. Fixes bug #315. Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
c74a06ff24
commit
0041d06c95
1 file changed
+1
-3
@@ -96,6 +96,4 @@ class BlkifController(DevController):
|
||||
if self.readBackend(i, 'dev') == devid:
|
||||
DevController.destroyDevice(self, i)
|
||||
return
|
||||
# Try this, but it's almost certainly going to throw VmError,
|
||||
# since we can't find the device.
|
||||
DevController.destroyDevice(self, int(devid))
|
||||
raise VmError("Device %s not connected" % devid)
|
||||