diff --git a/prometheus/files/exporter/service b/prometheus/files/exporter/service index 0f1eee3..f57d218 100644 --- a/prometheus/files/exporter/service +++ b/prometheus/files/exporter/service @@ -9,9 +9,7 @@ User={{ user }} Group={{ user }} Restart=on-failure ExecStart=/opt/prometheus/{{ exporter }}/bin/{{ svc_name }} -{%- if svc_args is string %} -{{ svc_args }} -{%- else %} +{%- if svc_args is string %}{{ svc_args }}{% else %} {%- for svc_arg in svc_args %} \ {{ svc_arg }}