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>
This commit is contained in:
Keir Fraser committed 2007-12-19 14:45:04 +00:00
1 parent dde6ba19a1
commit 2578655c64
2 files changed
+5

No files matched your search

+2
View File
@@ -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):
+3
View File
@@ -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']
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.