From: Tom Lendacky Subject: [PATCH][RESEND] Fix "Invalid Parameter" during xm create Date: Mon, 10 Oct 2005 12:50:03 -0500 Message-ID: <1128966603.20342.1.camel@tomlt2.austin.ibm.com> Reply-To: toml@us.ibm.com Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit 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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Forgot the signed-off-by... 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 diff -r 03d69dbea152 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Mon Oct 10 15:57:41 2005 +++ b/tools/python/xen/xend/XendDomainInfo.py Mon Oct 10 11:14:42 2005 @@ -1087,7 +1087,8 @@ log.debug("XendDomainInfo.destroy: domid=%s", self.domid) self.cleanupVm() - self.destroyDomain() + if self.dompath is not None: + self.destroyDomain() def destroyDomain(self): Thanks, Tom Lendacky