Skip to content

Commit 16310e6

Browse files
authored
Merge pull request cloudalchemy#33 from nikosgraser/master
Make node_exporter.service template compatible with both Python 2 and 3
2 parents ed92340 + d5d075f commit 16310e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/node_exporter.service.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ExecStart=/usr/local/bin/node_exporter \
1313
{% if not c is mapping -%}
1414
--collector.{{ c }} \
1515
{% else -%}
16-
{% set name,opt = c.items()[0] -%}
16+
{% set name,opt = (c.items() | list)[0] -%}
1717
{% for k,v in opt.items() -%}
1818
--collector.{{ name }}.{{ k }}={{ v }} \
1919
{% endfor -%}

0 commit comments

Comments
 (0)