diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-09-14 16:05:39 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-09-14 16:05:39 +0100 |
commit | 661e422af8358828daf1f83467375ae991f00e75 (patch) | |
tree | d9e258947fa693249adaf5d5a305094ffff20ade | |
parent | d6dec5a652d7fd1983def3ccd44081898ec81d34 (diff) | |
download | xen-661e422af8358828daf1f83467375ae991f00e75.tar.gz xen-661e422af8358828daf1f83467375ae991f00e75.tar.bz2 xen-661e422af8358828daf1f83467375ae991f00e75.zip |
Fix 'xm reboot'
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
-rw-r--r-- | tools/python/xen/xend/XendDomainInfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 65e38f82d5..ccd4012a60 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2167,7 +2167,7 @@ class XendDomainInfo: raise VmError('Invalid VM Name') dom = XendDomain.instance().domain_lookup_nr(name) - if dom and dom.domid != self.domid: + if dom and dom.domid and dom.domid != self.domid: raise VmError("VM name '%s' already exists%s" % (name, dom.domid is not None and |