From e2973c644d4cbed1924294c837a89f5b2371d135 Mon Sep 17 00:00:00 2001 From: Niels Abspoel Date: Mon, 14 Aug 2017 13:15:30 +0200 Subject: [PATCH] fix iteritems() with items() --- salt/map.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/map.jinja b/salt/map.jinja index de18a39..c429f0e 100644 --- a/salt/map.jinja +++ b/salt/map.jinja @@ -5,7 +5,7 @@ {#- This whole `'dict' in x.__class__.__name__` mess is a workaround for the missing mapping test in CentOS 6's ancient Jinja2, see #193 #} -{%- for k,v in b.iteritems() %} +{%- for k,v in b.items() %} {%- if v is string or v is number %} {%- do a.update({ k: v }) %} {%- elif 'dict' not in v.__class__.__name__ %}