We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed92340 + d5d075f commit 16310e6Copy full SHA for 16310e6
templates/node_exporter.service.j2
@@ -13,7 +13,7 @@ ExecStart=/usr/local/bin/node_exporter \
13
{% if not c is mapping -%}
14
--collector.{{ c }} \
15
{% else -%}
16
- {% set name,opt = c.items()[0] -%}
+ {% set name,opt = (c.items() | list)[0] -%}
17
{% for k,v in opt.items() -%}
18
--collector.{{ name }}.{{ k }}={{ v }} \
19
{% endfor -%}
0 commit comments