Skip to contentSkip to conversation

Fix xm block-destroy

PATCH New Anthony Liguori 1 participant 1 message Aug 12, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix xm block-destroy

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).

Regards,

Anthony Liguori

# HG changeset patch
# User Anthony Liguori <[email protected]>
# Node ID 73fccd848200b63230002b2d96df897ab232627a # Parent 17e1b03d6932fa4eb827d61fd7cb32c04213e421 Types do matter in dictionaries, this fixes xm block-destroy

tools/python/xen/xend/server/controller.py +1 -1
diff -r 17e1b03d6932 -r 73fccd848200 tools/python/xen/xend/server/controller.py
@@ -325,7 +325,7 @@
         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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel