diff --git a/templates/httpd/nagios_conf.erb b/templates/httpd/nagios_conf.erb index 41e9bff..6d5f0e8 100644 --- a/templates/httpd/nagios_conf.erb +++ b/templates/httpd/nagios_conf.erb @@ -56,7 +56,7 @@ Alias /nagios "/usr/share/nagios/html" = 2.3> Require all granted -<% if @ng_required_hosts != [] -%> +<% unless @ng_required_hosts.empty? -%> <% @ng_required_hosts.each do |required_host| -%> Require host <%= required_host %> <% end end -%>