Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Make node_exporter.service template compatible with both Python 2 and 3 #33

Merged
merged 1 commit into from
Apr 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/node_exporter.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ExecStart=/usr/local/bin/node_exporter \
{% if not c is mapping -%}
--collector.{{ c }} \
{% else -%}
{% set name,opt = c.items()[0] -%}
{% set name,opt = (c.items() | list)[0] -%}
{% for k,v in opt.items() -%}
--collector.{{ name }}.{{ k }}={{ v }} \
{% endfor -%}
Expand Down