From f8aa2a767c43f05d9d74441cdaad8104239af52c Mon Sep 17 00:00:00 2001 From: d-matt Date: Fri, 10 Aug 2018 13:14:46 +0200 Subject: [PATCH] Use items() instead of iteritems() in templates in order to be compatible with both python 2 & 3 (see https://docs.ansible.com/ansible/2.6/user_guide/playbooks_python_version.html#dict-iteritems) --- templates/grafana-server.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/grafana-server.j2 b/templates/grafana-server.j2 index 2b682a1..1502fbb 100644 --- a/templates/grafana-server.j2 +++ b/templates/grafana-server.j2 @@ -1,4 +1,4 @@ # {{ ansible_managed }} -{% for parameter, value in grafana_default.iteritems() %} +{% for parameter, value in grafana_default.items() %} {{ parameter | upper }}={{ value }} {% endfor %}