summaryrefslogtreecommitdiffstats
path: root/sanitytest.py
diff options
context:
space:
mode:
authorGuannan Ren <gren@redhat.com>2013-03-26 12:34:49 +0800
committerGuannan Ren <gren@redhat.com>2013-03-26 12:34:49 +0800
commit109e7e30b2697a18436bf4c9556302aaeb1e9777 (patch)
tree70933a0c80ea2c35ce0ff088c70787a0cb41548d /sanitytest.py
parent36975201ffb362dcf04141b5ee5d3ded9a0f56e4 (diff)
downloadlibvirt-python-v6-109e7e30b2697a18436bf4c9556302aaeb1e9777.tar.gz
libvirt-python-v6-109e7e30b2697a18436bf4c9556302aaeb1e9777.tar.xz
libvirt-python-v6-109e7e30b2697a18436bf4c9556302aaeb1e9777.zip
python: set default value to optional argumentsv1.0.4-rc2v1.0.4
When prefixing with string (optional) or optional in the description of arguments to libvirt C APIs, in python, these arguments will be set as optional arugments, for example: * virDomainSaveFlags: * @domain: a domain object * @to: path for the output file * @dxml: (optional) XML config for adjusting guest xml used on restore * @flags: bitwise-OR of virDomainSaveRestoreFlags the corresponding python APIs is restoreFlags(self, frm, dxml=None, flags=0) The following python APIs are changed to: blockCommit(self, disk, base, top, bandwidth=0, flags=0) blockPull(self, disk, bandwidth=0, flags=0) blockRebase(self, disk, base, bandwidth=0, flags=0) migrate(self, dconn, flags=0, dname=None, uri=None, bandwidth=0) migrate2(self, dconn, dxml=None, flags=0, dname=None, uri=None, bandwidth=0) migrateToURI(self, duri, flags=0, dname=None, bandwidth=0) migrateToURI2(self, dconnuri=None, miguri=None, dxml=None, flags=0, \ dname=None, bandwidth=0) saveFlags(self, to, dxml=None, flags=0) migrate(self, domain, flags=0, dname=None, uri=None, bandwidth=0) migrate2(self, domain, dxml=None, flags=0, dname=None, uri=None, bandwidth=0) restoreFlags(self, frm, dxml=None, flags=0)
Diffstat (limited to 'sanitytest.py')
0 files changed, 0 insertions, 0 deletions