X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Fcontrollers%2Fservice.py;h=509a2147a685a841b65829e00b6ddb0397bc9d95;hb=f91f0fd59dc16d284d230f8953e42d49a893715d;hp=9f1e70bb94dd8688a00d9cc9eccf27b9b28fade7;hpb=91f1cf44a5d7f2447155ea575d309309fbbe6f73;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/controllers/service.py b/ceph/src/pybind/mgr/dashboard/controllers/service.py index 9f1e70bb9..509a2147a 100644 --- a/ceph/src/pybind/mgr/dashboard/controllers/service.py +++ b/ceph/src/pybind/mgr/dashboard/controllers/service.py @@ -13,7 +13,7 @@ class Service(RESTController): @raise_if_no_orchestrator def list(self, service_name: Optional[str] = None) -> List[dict]: orch = OrchClient.instance() - return [service.to_json() for service in orch.services.list(service_name)] + return [service.to_json() for service in orch.services.list(service_name=service_name)] @raise_if_no_orchestrator def get(self, service_name: str) -> List[dict]: @@ -27,5 +27,5 @@ class Service(RESTController): @raise_if_no_orchestrator def daemons(self, service_name: str) -> List[dict]: orch = OrchClient.instance() - daemons = orch.services.list_daemons(service_name) + daemons = orch.services.list_daemons(service_name=service_name) return [d.to_json() for d in daemons]