diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-09-27 15:19:03 -0700 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-10-21 21:26:01 +0200 |
commit | 13bbd3b3b12bcc6e0a2e62c344908ca621774f34 (patch) | |
tree | 1ebf252b484d7aee2fb023741256e470bddab7e4 /source4 | |
parent | f67c0a28cfe3f3fc6ef2888c833e57c3d2138348 (diff) | |
download | samba-13bbd3b3b12bcc6e0a2e62c344908ca621774f34.tar.gz |
pyglue: Make all_interfaces argumen to interface_ips() optional.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Sun Oct 21 21:26:01 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/pyglue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/pyglue.c b/source4/scripting/python/pyglue.c index 966d82310f..735f03a1e1 100644 --- a/source4/scripting/python/pyglue.c +++ b/source4/scripting/python/pyglue.c @@ -140,9 +140,9 @@ static PyObject *py_interface_ips(PyObject *self, PyObject *args) struct loadparm_context *lp_ctx; struct interface *ifaces; int i, ifcount; - int all_interfaces; + int all_interfaces = 1; - if (!PyArg_ParseTuple(args, "Oi", &py_lp_ctx, &all_interfaces)) + if (!PyArg_ParseTuple(args, "O|i", &py_lp_ctx, &all_interfaces)) return NULL; tmp_ctx = talloc_new(NULL); |