mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-02 04:21:59 +03:00
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>
This commit is contained in:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user