[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.1-testing] Fix error message of xm suspend and xm resume for Domain-0.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1204735411 0
# Node ID e2f6d49bbaad580758a8c88c9e74e86f4d11c88f
# Parent  f01f8cd60ce067d586cff02dc19d979752b38df8
Fix error message of xm suspend and xm resume for Domain-0.
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
xen-unstable changeset:   17137:c19044cad1a305a9931b3b62039c13a8d4f1cb62
xen-unstable date:        Thu Feb 28 10:30:21 2008 +0000
---
 tools/python/xen/xend/XendDomain.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r f01f8cd60ce0 -r e2f6d49bbaad tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Wed Mar 05 16:43:12 2008 +0000
+++ b/tools/python/xen/xend/XendDomain.py       Wed Mar 05 16:43:31 2008 +0000
@@ -826,7 +826,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",
@@ -871,7 +871,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.")

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.