mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
python: Fix Create*WithFiles filefd passing
Commit d76227be added functions virDomainCreateWithFiles and virDomainCreateXMLWithFiles, but there was a little piece missing in python bindings. This patch fixes proper passing of file descriptors in the overwrites of these functions.
This commit is contained in:
parent
549f964985
commit
713a4f4ba5
@ -7105,6 +7105,8 @@ libvirt_virDomainCreateWithFiles(PyObject *self ATTRIBUTE_UNUSED, PyObject *args
|
||||
|
||||
if (libvirt_intUnwrap(pyfd, &fd) < 0)
|
||||
goto cleanup;
|
||||
|
||||
files[i] = fd;
|
||||
}
|
||||
|
||||
LIBVIRT_BEGIN_ALLOW_THREADS;
|
||||
@ -7149,6 +7151,8 @@ libvirt_virDomainCreateXMLWithFiles(PyObject *self ATTRIBUTE_UNUSED, PyObject *a
|
||||
|
||||
if (libvirt_intUnwrap(pyfd, &fd) < 0)
|
||||
goto cleanup;
|
||||
|
||||
files[i] = fd;
|
||||
}
|
||||
|
||||
LIBVIRT_BEGIN_ALLOW_THREADS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user