aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2007-12-19 14:45:04 +0000
committerKeir Fraser <keir.fraser@citrix.com>2007-12-19 14:45:04 +0000
commit2578655c6420d312bd465be58611de246d78dc7e (patch)
tree95037e0af61122930633fc7f016e281b30a4e4e7
parentdde6ba19a11be4a9d8298e1fc46282727af6e654 (diff)
downloadxen-2578655c6420d312bd465be58611de246d78dc7e.tar.gz
xen-2578655c6420d312bd465be58611de246d78dc7e.tar.bz2
xen-2578655c6420d312bd465be58611de246d78dc7e.zip
xend: Indicate a resume operation
Indicate that the domain is created as part of a resume operation rather than a 'create'. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
-rw-r--r--tools/python/xen/xend/XendDomain.py2
-rw-r--r--tools/python/xen/xend/XendDomainInfo.py3
2 files changed, 5 insertions, 0 deletions
diff --git a/tools/python/xen/xend/XendDomain.py b/tools/python/xen/xend/XendDomain.py
index 553a22d2c7..92e8f21067 100644
--- a/tools/python/xen/xend/XendDomain.py
+++ b/tools/python/xen/xend/XendDomain.py
@@ -913,6 +913,8 @@ class XendDomain:
if dominfo._stateGet() != XEN_API_VM_POWER_STATE_SUSPENDED:
raise XendError("Cannot resume domain that is not suspended.")
+ dominfo.setResume(True)
+
dom_uuid = dominfo.get_uuid()
chkpath = self._managed_check_point_path(dom_uuid)
if not os.path.exists(chkpath):
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py
index 418b09ccaf..8cc809a135 100644
--- a/tools/python/xen/xend/XendDomainInfo.py
+++ b/tools/python/xen/xend/XendDomainInfo.py
@@ -1178,6 +1178,9 @@ class XendDomainInfo:
def getResume(self):
return str(self._resume)
+ def setResume(self, isresume):
+ self._resume = isresume
+
def getCap(self):
return self.info['vcpus_params']['cap']