From d3195b7b8844d036a25d43d40e85c2846fc0830c Mon Sep 17 00:00:00 2001 From: Puneeth Nanjundaswamy Date: Fri, 10 Jul 2020 14:51:38 +0200 Subject: [PATCH] quote aws ec2 tags --- templates/etc-opt-telegraf-telegraf.conf.j2 | 4 ++-- templates/telegraf.conf.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/etc-opt-telegraf-telegraf.conf.j2 b/templates/etc-opt-telegraf-telegraf.conf.j2 index 8c0599c..76ff9e2 100644 --- a/templates/etc-opt-telegraf-telegraf.conf.j2 +++ b/templates/etc-opt-telegraf-telegraf.conf.j2 @@ -9,7 +9,7 @@ {% if telegraf_agent_aws_tags == true and ec2_tags is defined and ec2_tags != None %} {% for key, value in ec2_tags.tags.iteritems()%} - {{telegraf_agent_aws_tags_prefix}}{{ key }} = "{{ value }}" + "{{telegraf_agent_aws_tags_prefix}}{{ key }}" = "{{ value }}" {% endfor %} {% endif %} @@ -68,4 +68,4 @@ {% endif %} {% endfor %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/templates/telegraf.conf.j2 b/templates/telegraf.conf.j2 index aa2f985..ef4d59e 100644 --- a/templates/telegraf.conf.j2 +++ b/templates/telegraf.conf.j2 @@ -9,7 +9,7 @@ {% if telegraf_agent_aws_tags == true and ec2_tags is defined and ec2_tags != None %} {% for key, value in ec2_tags.tags.items()%} - {{telegraf_agent_aws_tags_prefix}}{{ key }} = "{{ value }}" + "{{telegraf_agent_aws_tags_prefix}}{{ key }}" = "{{ value }}" {% endfor %} {% endif %}