mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
pyparam: Allow specifying None as section name to LoadparmContext.get()
to mean default section.
This commit is contained in:
parent
f0ab4503d6
commit
338315f4d7
@ -175,7 +175,7 @@ static PyObject *py_lp_ctx_get(py_talloc_Object *self, PyObject *args)
|
||||
char *param_name;
|
||||
char *section_name = NULL;
|
||||
PyObject *ret;
|
||||
if (!PyArg_ParseTuple(args, "s|s", ¶m_name, §ion_name))
|
||||
if (!PyArg_ParseTuple(args, "s|z", ¶m_name, §ion_name))
|
||||
return NULL;
|
||||
|
||||
ret = py_lp_ctx_get_helper(PyLoadparmContext_AsLoadparmContext(self), section_name, param_name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user