ia64/xen-unstable

changeset 7308:0f33cbec4e36

This patch fixes an error in the xm create path when the
xc.domain_create call fails (eg, when ACM policy prevents creation of a
domain). When xc.domain_create fails, dompath never gets set.

Signed-off-by: Tom Lendacky <toml@us.ibm.com>
author emellor@ewan
date Mon Oct 10 19:06:14 2005 +0100 (2005-10-10)
parents bea563754fe6
children 9afe86e6d9dd
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon Oct 10 19:04:03 2005 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Mon Oct 10 19:06:14 2005 +0100
     1.3 @@ -1087,7 +1087,8 @@ class XendDomainInfo:
     1.4          log.debug("XendDomainInfo.destroy: domid=%s", self.domid)
     1.5  
     1.6          self.cleanupVm()
     1.7 -        self.destroyDomain()
     1.8 +        if self.dompath is not None:
     1.9 +                self.destroyDomain()
    1.10  
    1.11  
    1.12      def destroyDomain(self):