fix jinja2 syntax. really I know how to code

This commit is contained in:
Stephen Smoogen
2020-02-26 22:54:27 +00:00
committed by Pierre-Yves Chibon
parent fa91e4d065
commit 0b6f47fe3d

View File

@@ -7,7 +7,7 @@
define hostgroup{
hostgroup_name {{ key }}
alias {{ key }}
members {% for host in groups[key]|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, %{endif}{% endfor %}
members {% for host in groups[key]|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, {% endif %}{% endfor %}
}
{% endif %}