Merge PR #26986 into nautilus

* refs/pull/26986/head:
	mgr: Make 3rd parameter optional in ceph_get_module_option

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2019-03-15 16:43:33 -05:00
commit 8daf2885bb
2 changed files with 2 additions and 2 deletions

View File

@ -401,7 +401,7 @@ ceph_get_module_option(BaseMgrModule *self, PyObject *args)
char *module = nullptr;
char *key = nullptr;
char *prefix = nullptr;
if (!PyArg_ParseTuple(args, "ssz:ceph_get_module_option", &module, &key,
if (!PyArg_ParseTuple(args, "ss|s:ceph_get_module_option", &module, &key,
&prefix)) {
derr << "Invalid args!" << dendl;
return nullptr;

View File

@ -65,7 +65,7 @@ ceph_get_module_option(BaseMgrStandbyModule *self, PyObject *args)
{
char *what = nullptr;
char *prefix = nullptr;
if (!PyArg_ParseTuple(args, "sz:ceph_get_module_option", &what, &prefix)) {
if (!PyArg_ParseTuple(args, "s|s:ceph_get_module_option", &what, &prefix)) {
derr << "Invalid args!" << dendl;
return nullptr;
}