mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
If block-create didn't work, then chances are block-destroy doesn't work
either right :-) In this case, XendDomain.py is just calling a function that doesn't exist (device_destroy instead of device_delete). Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
1 parent
2591bbb102
commit
561b5b9cd3
1 file changed
+1
-1
@@ -325,7 +325,7 @@ class DevController:
|
||||
return self.destroyed
|
||||
|
||||
def getDevice(self, id, error=False):
|
||||
dev = self.devices.get(id)
|
||||
dev = self.devices.get(int(id))
|
||||
if error and not dev:
|
||||
raise XendError("invalid device id: " + str(id))
|
||||
return dev
|
||||
|
||||