diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 14410f9e6c..a3d6739bec 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -976,10 +976,20 @@ class XendDomainInfo: self.cleanup() + try: + self.removeVm() + except Exception: + log.exception("Removing VM path failed.") + + try: + self.removeDom() + except Exception: + log.exception("Removing domain path failed.") + try: if self.domid is not None: xc.domain_destroy(dom=self.domid) - except Exception, exn: + except Exception: log.exception("XendDomainInfo.destroy: xc.domain_destroy failed.")