From 4dda088136e89451a2ad0a93c6e46e34c2d390d4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 31 Jan 2022 10:29:21 -0800 Subject: [PATCH] nagios: remove duplicate variable check Signed-off-by: Kevin Fenzi --- .../nagios_server/templates/nagios/hostgroups/checkswap.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nagios_server/templates/nagios/hostgroups/checkswap.cfg.j2 b/roles/nagios_server/templates/nagios/hostgroups/checkswap.cfg.j2 index ce03b64867..cdc671c106 100644 --- a/roles/nagios_server/templates/nagios/hostgroups/checkswap.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hostgroups/checkswap.cfg.j2 @@ -1,6 +1,6 @@ define hostgroup { hostgroup_name CheckSwap alias Swap-Is-Low - members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Can_Connect == true and hostvars[host].nagios_Check_Services['swap'] == true and hostvars[host].nagios_Can_Connect == true %}{{host}}{% if not loop.last %}, {% endif %}{% endif %}{% endfor %} + members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Can_Connect == true and hostvars[host].nagios_Check_Services['swap'] == true %}{{host}}{% if not loop.last %}, {% endif %}{% endif %}{% endfor %} }