[libvirt] [python PATCH] Fix flags cannot get right value for blockCopy function
Luyao Huang
lhuang at redhat.com
Wed Oct 22 05:18:37 UTC 2014
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 at redhat.com>
---
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, ¶ms,
- &flags))
+ &pyobj_dom, &disk, &destxml, &pyobj_dict, &flags))
return VIR_PY_INT_FAIL;
if (PyDict_Check(pyobj_dict)) {
--
1.8.3.1
More information about the libvir-list
mailing list