oh the comma needs to be in the endif or it blows up

This commit is contained in:
Stephen Smoogen 2017-12-01 02:00:07 +00:00
parent cecac4ee45
commit 5980773461

View file

@ -8,7 +8,7 @@
define hostgroup{ define hostgroup{
hostgroup_name {{ key }} hostgroup_name {{ key }}
alias {{ key }} alias {{ key }}
members {% for host in groups[key] %}{% if hostvars[host].nagios_Check_Services['ping'] == true %}{{host}}{% endif %}, {% endfor %} members {% for host in groups[key] %}{% if hostvars[host].nagios_Check_Services['ping'] == true %}{{host}}, {% endif %}{% endfor %}
} }
{% endif %} {% endif %}