Skip to contentSkip to conversation

PATCH: Fix SrvDomain.op_save

PATCH Daniel P. Berrange 1 participant 1 message May 1, 2007

lore
Share & tools
lore
#0 lore raw

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.

Regards,
Dan.

Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 
tools/python/xen/xend/XendDomain.py +1 -1
diff -rup xen-3.0.5-testing.hg-rc4/tools/python/xen/xend/XendDomain.py xen-3.0.5-testing.hg-rc4.new/tools/python/xen/xend/XendDomain.py
@@ -1236,7 +1236,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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel