ia64/xen-unstable

changeset 17144:c19044cad1a3

Fix error message of xm suspend and xm resume for Domain-0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 28 10:30:21 2008 +0000 (2008-02-28)
parents e44c6b67a483
children f8624b023d67
files tools/python/xen/xend/XendDomain.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Thu Feb 28 10:29:25 2008 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Thu Feb 28 10:30:21 2008 +0000
     1.3 @@ -865,7 +865,7 @@ class XendDomain:
     1.4                  raise XendInvalidDomain(domname)
     1.5  
     1.6              if dominfo.getDomid() == DOM0_ID:
     1.7 -                raise XendError("Cannot save privileged domain %s" % domname)
     1.8 +                raise XendError("Cannot suspend privileged domain %s" % domname)
     1.9  
    1.10              if dominfo._stateGet() != DOM_STATE_RUNNING:
    1.11                  raise VMBadState("Domain is not running",
    1.12 @@ -910,7 +910,7 @@ class XendDomain:
    1.13                      raise XendInvalidDomain(domname)
    1.14  
    1.15                  if dominfo.getDomid() == DOM0_ID:
    1.16 -                    raise XendError("Cannot save privileged domain %s" % domname)
    1.17 +                    raise XendError("Cannot resume privileged domain %s" % domname)
    1.18  
    1.19                  if dominfo._stateGet() != XEN_API_VM_POWER_STATE_SUSPENDED:
    1.20                      raise XendError("Cannot resume domain that is not suspended.")