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

[Xen-changelog] Use constant in XendDomainInfo rather than embedding a string literal.



# HG changeset patch
# User emellor@ewan
# Node ID 299c2d5b5dafdc4c6b44a941875f79cde72833a6
# Parent  b6e58e2daff8c1ee676950fb3624e06690fed9fe
Use constant in XendDomainInfo rather than embedding a string literal.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r b6e58e2daff8 -r 299c2d5b5daf tools/python/xen/xend/XendCheckpoint.py
--- a/tools/python/xen/xend/XendCheckpoint.py   Tue Sep 27 11:29:36 2005
+++ b/tools/python/xen/xend/XendCheckpoint.py   Tue Sep 27 11:30:13 2005
@@ -10,8 +10,12 @@
 import sxp
 from string import join
 from struct import pack, unpack, calcsize
+
 from xen.util.xpopen import xPopen3
+
 import xen.lowlevel.xc
+
+import XendDomainInfo
 from xen.xend.xenstore.xsutil import IntroduceDomain
 
 from XendError import XendError
@@ -74,7 +78,7 @@
                 if l.rstrip() == "suspend":
                     log.info("suspending %d" % dominfo.domid)
                     xd.domain_shutdown(dominfo.domid, reason='suspend')
-                    dominfo.state_wait("suspended")
+                    dominfo.state_wait(XendDomainInfo.STATE_VM_SUSPENDED)
                     log.info("suspend %d done" % dominfo.domid)
                     child.tochild.write("done\n")
                     child.tochild.flush()

_______________________________________________
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®.