[XEND][XENAPI] XendCheckpoint should use XendConfig for passing configs.

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
Alastair Tse committed 2006-10-05 17:29:19 +01:00
1 parent 8eb29e99bd
commit 02af4f3cd3
1 file changed
+6 -2
+6 -2
View File
@@ -109,7 +109,7 @@ def save(fd, dominfo, network, live, dst):
raise Exception, exn
def restore(xd, fd):
def restore(xd, fd, dominfo = None):
signature = read_exact(fd, len(SIGNATURE),
"not a valid guest state file: signature read")
if signature != SIGNATURE:
@@ -129,7 +129,11 @@ def restore(xd, fd):
vmconfig = p.get_val()
dominfo = xd.restore_(vmconfig)
if dominfo:
dominfo.update(XendConfig(sxp = vmconfig), refresh = False)
dominfo.resume()
else:
dominfo = xd.restore_(vmconfig)
store_port = dominfo.getStorePort()
console_port = dominfo.getConsolePort()
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.