Signed-off-by: Joshua Schmid <jschmid@suse.de>
result.append(d)
return result
+ def get_daemons_by_type(self, service_type):
+ # type: (str) -> List[orchestrator.DaemonDescription]
+ result = [] # type: List[orchestrator.DaemonDescription]
+ for host, dm in self.daemons.items():
+ for name, d in dm.items():
+ if d.daemon_type == service_type:
+ result.append(d)
+ return result
+
def get_daemon_names(self):
# type: () -> List[str]
r = []
process_removal_queue().
"""
- daemons: List[orchestrator.DaemonDescription] = self.cache.get_daemons_by_service('osd')
+ daemons: List[orchestrator.DaemonDescription] = self.cache.get_daemons_by_type('osd')
to_remove_daemons = list()
for daemon in daemons:
if daemon.daemon_id in osd_ids: