From b72c46c607ac275832c7a05caf499de7a96957d6 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Sat, 6 Jun 2020 16:57:01 -0400 Subject: [PATCH] according to https://docs.ansible.com/ansible/2.5/dev_guide/testing/sanity/no-dict-iteritems.html iteritmes is not in python3. changing old items --- roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 b/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 index cd42e1da82..4151725b5e 100644 --- a/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 @@ -2,7 +2,7 @@ # All Servers and associated devices ############### ## {{ env }} -{% for key, value in groups.iteritems()|sort %} +{% for key, value in groups.items()|sort %} {% if groups[key] != [] and key not in vars['exclude_hostgroups'] %} define hostgroup{ hostgroup_name {{ key }}