move the call to XendDevices.destroy_device_state()
PATCH 1/1 move the call to XendDevices.destroy_device_state()
This patch moves the call to XendDevices.destroy_device_state() to the function _remove_domain. Previously only Xen-API calls were calling the destroy_device_state() function.
Signed-off-by Stefan Berger <[email protected]>
xen-unstable.hg/tools/python/xen/xend/XendDomain.py +1 -1
@@ -483,6 +483,7 @@ class XendDomain: if domid in self.domains: del self.domains[domid] + XendDevices.destroy_device_state(info) info.destroy_xapi_device_instances() else: log.warning("Attempted to remove non-existent domain.")
@@ -1096,7 +1097,6 @@ class XendDomain: dominfo.metrics.destroy() self._managed_domain_unregister(dominfo) self._remove_domain(dominfo) - XendDevices.destroy_device_state(dominfo) dominfo.destroy_xapi_device_instances()
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel