1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-prometheus synced 2024-11-22 09:41:01 +01:00

Pass job target_format through formatter twice so that fallbacks are possible

This commit is contained in:
s3lph 2021-02-20 22:41:31 +01:00
parent 395319b813
commit 83b2e59677

View file

@ -46,7 +46,7 @@
{%- set fstring = {} -%} {%- set fstring = {} -%}
{%- set ignored = fstring.update(job.defaults|default({})) -%} {%- set ignored = fstring.update(job.defaults|default({})) -%}
{%- set ignored = fstring.update(hostvars[host]) -%} {%- set ignored = fstring.update(hostvars[host]) -%}
- {{ job.target_format | format(**fstring) }} - {{ job.target_format | format(**fstring) | format(**fstring) }}
{% endif -%} {% endif -%}
{% endfor -%} {% endfor -%}