mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
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:
1 parent
6a69bb45ed
commit
3785768ebd
1 file changed
+2
-2
@@ -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.")
|
||||
|
||||