From 13bbd3b3b12bcc6e0a2e62c344908ca621774f34 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 27 Sep 2012 15:19:03 -0700 Subject: pyglue: Make all_interfaces argumen to interface_ips() optional. Autobuild-User(master): Jelmer Vernooij Autobuild-Date(master): Sun Oct 21 21:26:01 CEST 2012 on sn-devel-104 --- source4/scripting/python/pyglue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/scripting/python') 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); -- cgit