[python PATCH] Fix flags cannot get right value for blockCopy function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
this function cannot be used.And error just like:

unsupported flags (0x7f6c) in function qemuDomainBlockCopy

Signed-off-by: Luyao Huang <lhuang@xxxxxxxxxx>
---
 libvirt-override.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libvirt-override.c b/libvirt-override.c
index c887b71..4999ac3 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, &params,
-                          &flags))
+                          &pyobj_dom, &disk, &destxml, &pyobj_dict, &flags))
         return VIR_PY_INT_FAIL;
 
     if (PyDict_Check(pyobj_dict)) {
-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]