ia64/xen-unstable

changeset 14992:9ceacd71949b

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>
author kfraser@localhost.localdomain
date Tue May 01 14:01:01 2007 +0100 (2007-05-01)
parents ede8db6534ef
children 650007cf390d
files tools/python/xen/xend/XendDomain.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Tue May 01 10:20:55 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Tue May 01 14:01:01 2007 +0100
     1.3 @@ -1227,7 +1227,7 @@ class XendDomain:
     1.4          XendCheckpoint.save(sock.fileno(), dominfo, True, live, dst)
     1.5          sock.close()
     1.6  
     1.7 -    def domain_save(self, domid, dst, checkpoint):
     1.8 +    def domain_save(self, domid, dst, checkpoint=False):
     1.9          """Start saving a domain to file.
    1.10  
    1.11          @param domid: Domain ID or Name