From: Kiefer Chang Date: Thu, 17 Sep 2020 03:37:15 +0000 (+0800) Subject: mgr/rook: fix listing daemons X-Git-Tag: v15.2.9~122^2~44^2~21 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5946b4a7f2e342fc85f70ee9e2ca380d84cbb937;p=ceph.git mgr/rook: fix listing daemons 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 (cherry picked from commit 8098ca765fadce18c3738df04f9eb5ddf786c113) --- diff --git a/src/pybind/mgr/rook/module.py b/src/pybind/mgr/rook/module.py index 64fcff99c8d9..daebe31899f8 100644 --- a/src/pybind/mgr/rook/module.py +++ b/src/pybind/mgr/rook/module.py @@ -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):