summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-09-27 15:19:03 -0700
committerJelmer Vernooij <jelmer@samba.org>2012-10-21 21:26:01 +0200
commit13bbd3b3b12bcc6e0a2e62c344908ca621774f34 (patch)
tree1ebf252b484d7aee2fb023741256e470bddab7e4 /source4/scripting
parentf67c0a28cfe3f3fc6ef2888c833e57c3d2138348 (diff)
downloadsamba-13bbd3b3b12bcc6e0a2e62c344908ca621774f34.tar.gz
samba-13bbd3b3b12bcc6e0a2e62c344908ca621774f34.tar.bz2
samba-13bbd3b3b12bcc6e0a2e62c344908ca621774f34.zip
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/scripting')
-rw-r--r--source4/scripting/python/pyglue.c4
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);