aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-05-01 14:01:01 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-05-01 14:01:01 +0100
commit1f2d7a821f44cdb3ec30ab9f0d4fc698609bdcb4 (patch)
tree3a5eed49ba53b1f8477ff625a5475be2b4538586
parentf92b83e597d933f7b497892e270a0737392ca287 (diff)
downloadxen-1f2d7a821f44cdb3ec30ab9f0d4fc698609bdcb4.tar.gz
xen-1f2d7a821f44cdb3ec30ab9f0d4fc698609bdcb4.tar.bz2
xen-1f2d7a821f44cdb3ec30ab9f0d4fc698609bdcb4.zip
xend: Fix SrvDomain.op_save.
The xen.xend.server.SrvDomain class provides an op_save method for saving guests. This just calls into the domain_save method on xen.xend.XenDomain The latter recently gained an extra 'checkpoint' argument, but the SrvDomain class is not providing this. The attached patch simply makes the 'checkpoint' arg default to 'False' if not provided by the caller which makes old calling convention. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r--tools/python/xen/xend/XendDomain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendDomain.py b/tools/python/xen/xend/XendDomain.py
index 00c2603987..607846cb59 100644
--- a/tools/python/xen/xend/XendDomain.py
+++ b/tools/python/xen/xend/XendDomain.py
@@ -1227,7 +1227,7 @@ class XendDomain:
XendCheckpoint.save(sock.fileno(), dominfo, True, live, dst)
sock.close()
- def domain_save(self, domid, dst, checkpoint):
+ def domain_save(self, domid, dst, checkpoint=False):
"""Start saving a domain to file.
@param domid: Domain ID or Name