Skip to content
Snippets Groups Projects
Commit 3ba384a0 authored by Jan Philipp Timme's avatar Jan Philipp Timme
Browse files

Replace .iteritems() with items() for python3 compatibility

parent e824f271
No related branches found
No related tags found
No related merge requests found
{% for instance_name, instance_conf in salt['pillar.get']("postgrest:instances").iteritems() %} {% for instance_name, instance_conf in salt['pillar.get']("postgrest:instances").items() %}
{% if instance_conf.nginx is defined %} {% if instance_conf.nginx is defined %}
postgrest_{{ instance_name }}_nginx_conf: postgrest_{{ instance_name }}_nginx_conf:
......
{% for instance_name, instance_conf in salt['pillar.get']("postgrest:instances").iteritems() %} {% for instance_name, instance_conf in salt['pillar.get']("postgrest:instances").items() %}
{% set tag = instance_conf.tag %} {% set tag = instance_conf.tag %}
postgrest_{{ instance_name }}_fetch: postgrest_{{ instance_name }}_fetch:
......
# This file is written by salt. Don't even think about it. # This file is written by salt. Don't even think about it.
{% for key, value in postgrest_conf.iteritems() %}{{ key }} = {% if value is string %}"{{ value }}"{% else %}{{ value }}{% endif %} {% for key, value in postgrest_conf.items() %}{{ key }} = {% if value is string %}"{{ value }}"{% else %}{{ value }}{% endif %}
{% endfor %} {% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment