]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/test_orchestrator: fix list_daemons
authorSage Weil <sage@redhat.com>
Tue, 25 Feb 2020 22:50:14 +0000 (16:50 -0600)
committerSage Weil <sage@redhat.com>
Thu, 27 Feb 2020 23:15:28 +0000 (17:15 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/test_orchestrator/module.py

index 087b0d332c5cf698ce479cf150c100bf848312f4..d162271dffb396e06bb1625af6fcaaec8cada2b5 100644 (file)
@@ -154,7 +154,7 @@ class TestOrchestrator(MgrModule, orchestrator.Orchestrator):
         raise Exception('c-v failed')
 
     @deferred_read
-    def list_daemons(self, daemon_type=None, daemon_id=None, host_name=None, refresh=False):
+    def list_daemons(self, daemon_type=None, daemon_id=None, host=None, refresh=False):
         """
         There is no guarantee which daemons are returned by describe_service, except that
         it returns the mgr we're running in.
@@ -164,8 +164,8 @@ class TestOrchestrator(MgrModule, orchestrator.Orchestrator):
             assert daemon_type in daemon_types, daemon_type + " unsupported"
 
         if self._daemons:
-            if host_name:
-                return list(filter(lambda svc: svc.hostname == host_name, self._daemons))
+            if host:
+                return list(filter(lambda svc: svc.hostname == host, self._daemons))
             return self._daemons
 
         out = map(str, check_output(['ps', 'aux']).splitlines())