]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/BaseMgrStandbyModule: parse prefix properly
authorSage Weil <sage@redhat.com>
Tue, 12 Mar 2019 21:45:22 +0000 (16:45 -0500)
committerSage Weil <sage@redhat.com>
Tue, 12 Mar 2019 21:45:32 +0000 (16:45 -0500)
Fixes: http://tracker.ceph.com/issues/38705
Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/BaseMgrStandbyModule.cc

index 6a20b114c7483982cf15b438bf64ef6ac43559c1..4a9c5671b7f52f2a8488fc5b04d6379098d71908 100644 (file)
@@ -65,7 +65,7 @@ ceph_get_module_option(BaseMgrStandbyModule *self, PyObject *args)
 {
   char *what = nullptr;
   char *prefix = nullptr;
-  if (!PyArg_ParseTuple(args, "ss:ceph_get_module_option", &what)) {
+  if (!PyArg_ParseTuple(args, "ss:ceph_get_module_option", &what, &prefix)) {
     derr << "Invalid args!" << dendl;
     return nullptr;
   }