We should apply filters on ServiceSpecs in store too, or services are
returned even filters are applied during collecting daemons.
Fixes: https://tracker.ceph.com/issues/44512
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
for n, spec in self.spec_store.specs.items():
if n in sm:
continue
+ if service_type is not None and service_type != spec.service_type:
+ continue
+ if service_name is not None and service_name != n:
+ continue
sm[n] = orchestrator.ServiceDescription(
service_name=n,
spec=spec,