ia64/xen-unstable

changeset 15911:9f4f70233041

Fix 'xm reboot'
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author kfraser@localhost.localdomain
date Fri Sep 14 16:05:39 2007 +0100 (2007-09-14)
parents c36292e83f07
children 9a7cbde124a5
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Fri Sep 14 16:04:33 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Fri Sep 14 16:05:39 2007 +0100
     1.3 @@ -2167,7 +2167,7 @@ class XendDomainInfo:
     1.4              raise VmError('Invalid VM Name')
     1.5  
     1.6          dom =  XendDomain.instance().domain_lookup_nr(name)
     1.7 -        if dom and dom.domid != self.domid:
     1.8 +        if dom and dom.domid and dom.domid != self.domid:
     1.9              raise VmError("VM name '%s' already exists%s" %
    1.10                            (name,
    1.11                             dom.domid is not None and