fix(service): pick up the right service name in pillars

This commit is contained in:
Nicolas Rodriguez 2020-08-24 17:33:44 +02:00
parent 41da7cc697
commit 0169c89ca4

View File

@ -12,7 +12,7 @@ include:
{%- for name in p.wanted.component %}
{%- if 'service' in p.pkg.component[name] and p.pkg.component[name]['service'] %}
{%- set service_name = p.pkg.component[name]['service']['get'](name, {}).get('name', name) %}
{%- set service_name = p.pkg.component[name]['service'].get('name', name) %}
prometheus-service-running-{{ name }}-unmasked:
service.unmasked: