Skip to content
Snippets Groups Projects
Commit 3e0503fc authored by MyIgel's avatar MyIgel :fire:
Browse files

Replace iteritems with items to be python3 compatible

parent 830198de
No related branches found
No related tags found
1 merge request!446Resolve "replace iteritems for python3"
Pipeline #21923 passed
......@@ -72,7 +72,7 @@ certbot.timer:
# request initial certs
{% for setname, domainlist in pillar['letsencrypt']['domainsets'].iteritems() %}
{% for setname, domainlist in pillar['letsencrypt']['domainsets'].items() %}
certbot_certonly_initial_{{ setname }}_{{ domainlist|join('+') }}:
cmd.run:
......
{% for name, vhost in pillar.get('nginx', {}).get('vhosts', {}).iteritems() %}
{% for name, vhost in pillar.get('nginx', {}).get('vhosts', {}).items() %}
{% set cert_path = "/etc/letsencrypt/live/{cn}/fullchain.pem".format(cn=vhost.ssl.common_name) %}
{% set key_path = "/etc/letsencrypt/live/{cn}/privkey.pem".format(cn=vhost.ssl.common_name) %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment