From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: [PATCH] Fix xm block-destroy Date: Fri, 12 Aug 2005 15:00:53 -0500 Message-ID: <42FCFFF5.60306@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000703070409010109000102" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------000703070409010109000102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Signed-off-by: Anthony Liguori --------------000703070409010109000102 Content-Type: text/x-patch; name="xend_block_destroy.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xend_block_destroy.diff" # HG changeset patch # User Anthony Liguori # Node ID 73fccd848200b63230002b2d96df897ab232627a # Parent 17e1b03d6932fa4eb827d61fd7cb32c04213e421 Types do matter in dictionaries, this fixes xm block-destroy diff -r 17e1b03d6932 -r 73fccd848200 tools/python/xen/xend/server/controller.py --- a/tools/python/xen/xend/server/controller.py Fri Aug 12 19:34:09 2005 +++ b/tools/python/xen/xend/server/controller.py Fri Aug 12 20:06:15 2005 @@ -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 --------------000703070409010109000102 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------000703070409010109000102--