Fix error message of xm suspend and xm resume for Domain-0.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2008-02-28 10:30:21 +00:00
1 parent 6a69bb45ed
commit 3785768ebd
1 file changed
+2 -2
+2 -2
View File
@@ -865,7 +865,7 @@ class XendDomain:
raise XendInvalidDomain(domname)
if dominfo.getDomid() == DOM0_ID:
raise XendError("Cannot save privileged domain %s" % domname)
raise XendError("Cannot suspend privileged domain %s" % domname)
if dominfo._stateGet() != DOM_STATE_RUNNING:
raise VMBadState("Domain is not running",
@@ -910,7 +910,7 @@ class XendDomain:
raise XendInvalidDomain(domname)
if dominfo.getDomid() == DOM0_ID:
raise XendError("Cannot save privileged domain %s" % domname)
raise XendError("Cannot resume privileged domain %s" % domname)
if dominfo._stateGet() != XEN_API_VM_POWER_STATE_SUSPENDED:
raise XendError("Cannot resume domain that is not suspended.")
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.