Allow service to be absent

Currently we assume that there must be a services that needs to be
restarted. At same time it's not always the case, for example when
ceph_client role is used to prepare host for cephfs mount.

Change-Id: I6a5cf134a0117e6d8c12a339713ca425a31b907b
This commit is contained in:
Dmitriy Rabotyagov 2022-05-18 13:47:43 +02:00
parent 030e273950
commit f918ba48db
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ ceph_client_filtered_packages: |-
ceph_client_filtered_services: |-
{% set services = [] %}
{% for comp in (ceph_components + ceph_extra_components) %}
{% if comp.component in group_names %}
{% if comp.component in group_names and 'service' in comp %}
{% set _ = services.append(comp.service) %}
{% endif %}
{% endfor %}