mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05: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:
1 parent
3a8cc9cf50
commit
e350826c65
1 file changed
+4
@@ -7157,6 +7157,8 @@ libvirt_virDomainCreateWithFiles(PyObject *self ATTRIBUTE_UNUSED, PyObject *args
|
||||
|
||||
if (libvirt_intUnwrap(pyfd, &fd) < 0)
|
||||
goto cleanup;
|
||||
|
||||
files[i] = fd;
|
||||
}
|
||||
|
||||
LIBVIRT_BEGIN_ALLOW_THREADS;
|
||||
@@ -7201,6 +7203,8 @@ libvirt_virDomainCreateXMLWithFiles(PyObject *self ATTRIBUTE_UNUSED, PyObject *a
|
||||
|
||||
if (libvirt_intUnwrap(pyfd, &fd) < 0)
|
||||
goto cleanup;
|
||||
|
||||
files[i] = fd;
|
||||
}
|
||||
|
||||
LIBVIRT_BEGIN_ALLOW_THREADS;
|
||||
|
||||
Reference in new issue
Block a user