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:
parent
395319b813
commit
83b2e59677
1 changed files with 1 additions and 1 deletions
|
@ -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 -%}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue