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:
parent
030e273950
commit
f918ba48db
|
@ -70,7 +70,7 @@ ceph_client_filtered_packages: |-
|
||||||
ceph_client_filtered_services: |-
|
ceph_client_filtered_services: |-
|
||||||
{% set services = [] %}
|
{% set services = [] %}
|
||||||
{% for comp in (ceph_components + ceph_extra_components) %}
|
{% 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) %}
|
{% set _ = services.append(comp.service) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue