Replace the use of _calc_daemon_deps in agent.py with direct call to the
method that _calc_daemon_deps uses. This avoids a bunch of redundant
calls just to get the service class (that we already have) and removes a
use of a rarely used "helper" function.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
return down
try:
spec = self.mgr.spec_store.active_specs.get(CephadmAgent.TYPE, None)
- deps = self.mgr._calc_daemon_deps(spec, CephadmAgent.TYPE, agent.daemon_id)
+ deps = CephadmAgent.sorted_dependencies(self.mgr, spec, CephadmAgent.TYPE)
last_deps, last_config = self.mgr.agent_cache.get_agent_last_config_deps(host)
if not last_config or last_deps != deps:
# if root cert is the dep that changed, we must use ssh to reconfig