From 24c095a72bd6eba9429b3f17d1eeaaa7da0ed30e Mon Sep 17 00:00:00 2001 From: ston3o <5039608+ston3o@users.noreply.github.com> Date: Thu, 27 Jul 2017 22:41:53 +0200 Subject: [PATCH] Replace iteritems to items --- templates/etc/fail2ban/jail.local.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etc/fail2ban/jail.local.j2 b/templates/etc/fail2ban/jail.local.j2 index c5e984f..9be5c7b 100644 --- a/templates/etc/fail2ban/jail.local.j2 +++ b/templates/etc/fail2ban/jail.local.j2 @@ -105,7 +105,7 @@ action = {{ fail2ban_action }} {% for service in fail2ban_services %} [{{ service.name }}] enabled = {{ service.enabled | default(true) | bool | to_json }} -{% for option, value in service.iteritems() %} +{% for option, value in service.items() %} {% if option not in ['name', 'enabled'] %} {{ option }} = {{ value }} {% endif %}