diff options
author | Pavel Hrdina <phrdina@redhat.com> | 2014-10-22 11:10:54 +0200 |
---|---|---|
committer | Pavel Hrdina <phrdina@redhat.com> | 2014-10-22 11:11:28 +0200 |
commit | a7303a56b5e55c29cb5336c84a89b8347a355770 (patch) | |
tree | 6c3eee5579a0bc7601105308cad29273ba71a771 | |
parent | 7aaa02b47a81f5692fcd6cfaee3cf9b7f659d69f (diff) | |
download | libvirt-python-a7303a56b5e55c29cb5336c84a89b8347a355770.tar.gz |
flags cannot get right value for blockCopy function
When use blockCopy, flags cannot get a right value, because
PyArg_ParseTuple want to get 6 parameters and blockCopy only
pass 5. Flags will get a unpredictable value, this will make
the function fail with error:
unsupported flags (0x7f6c) in function qemuDomainBlockCopy
Signed-off-by: Luyao Huang <lhuang@redhat.com>
-rw-r--r-- | libvirt-override.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libvirt-override.c b/libvirt-override.c index a88f137..a461eda 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -8175,8 +8175,7 @@ libvirt_virDomainBlockCopy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) int c_retval; if (!PyArg_ParseTuple(args, (char *) "Ozz|OI:virDomainBlockCopy", - &pyobj_dom, &disk, &destxml, &pyobj_dict, ¶ms, - &flags)) + &pyobj_dom, &disk, &destxml, &pyobj_dict, &flags)) return VIR_PY_INT_FAIL; if (PyDict_Check(pyobj_dict)) { |