summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/guestfs-py-byhand.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/guestfs-py-byhand.c b/python/guestfs-py-byhand.c
index eea10ca0..6cbbf506 100644
--- a/python/guestfs-py-byhand.c
+++ b/python/guestfs-py-byhand.c
@@ -34,8 +34,11 @@ PyObject *
py_guestfs_create (PyObject *self, PyObject *args)
{
guestfs_h *g;
+ unsigned flags;
- g = guestfs_create ();
+ if (!PyArg_ParseTuple (args, (char *) "I:guestfs_create", &flags))
+ return NULL;
+ g = guestfs_create_flags (flags);
if (g == NULL) {
PyErr_SetString (PyExc_RuntimeError,
"guestfs.create: failed to allocate handle");