diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index c9711808a8..cc949d15e0 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1087,7 +1087,8 @@ class XendDomainInfo: log.debug("XendDomainInfo.destroy: domid=%s", self.domid) self.cleanupVm() - self.destroyDomain() + if self.dompath is not None: + self.destroyDomain() def destroyDomain(self):