]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rook: fix listing daemons
authorKiefer Chang <kiefer.chang@suse.com>
Thu, 17 Sep 2020 03:37:15 +0000 (11:37 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 6 Oct 2020 09:40:53 +0000 (11:40 +0200)
Pass the parameters to the `_list_daemons` method explicitly to avoid missing
parameters.

Fixes: https://tracker.ceph.com/issues/47387
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
(cherry picked from commit 8098ca765fadce18c3738df04f9eb5ddf786c113)

src/pybind/mgr/rook/module.py

index 64fcff99c8d90ee81d45ae57789e131113308250..daebe31899f89abec2d8a68034ff2b60f8635d52 100644 (file)
@@ -363,7 +363,11 @@ class RookOrchestrator(MgrModule, orchestrator.Orchestrator):
     @deferred_read
     def list_daemons(self, service_name=None, daemon_type=None, daemon_id=None, host=None,
                      refresh=False):
-        return self._list_daemons(daemon_type, daemon_id, host, refresh)
+        return self._list_daemons(service_name=service_name,
+                                  daemon_type=daemon_type,
+                                  daemon_id=daemon_id,
+                                  host=host,
+                                  refresh=refresh)
 
     def _list_daemons(self, service_name=None, daemon_type=None, daemon_id=None, host=None,
                       refresh=False):