mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
pyldb: make ldb.connect() url mandatory
The call fails without it, so we might as well fail sooner Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
3da801aea1
commit
0e419a2163
@ -1213,7 +1213,7 @@ static PyObject *py_ldb_connect(PyLdbObject *self, PyObject *args, PyObject *kwa
|
||||
const char * const kwnames[] = { "url", "flags", "options", NULL };
|
||||
struct ldb_context *ldb_ctx;
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|zIO",
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "z|IO",
|
||||
discard_const_p(char *, kwnames),
|
||||
&url, &flags, &py_options))
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user