aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-08-13 09:06:44 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-08-13 09:06:44 +0000
commit561b5b9cd3adfada03a77f45389583dc2efb5ff8 (patch)
treefb86492c507d8b41ba17141de2e8b0ce374d0710
parent2591bbb102f16f02b75abd74adde94fa1b43274a (diff)
downloadxen-561b5b9cd3adfada03a77f45389583dc2efb5ff8.tar.gz
xen-561b5b9cd3adfada03a77f45389583dc2efb5ff8.tar.bz2
xen-561b5b9cd3adfada03a77f45389583dc2efb5ff8.zip
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>
-rwxr-xr-xtools/python/xen/xend/server/controller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/server/controller.py b/tools/python/xen/xend/server/controller.py
index a1446c3093..973398f090 100755
--- a/tools/python/xen/xend/server/controller.py
+++ b/tools/python/xen/xend/server/controller.py
@@ -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