diff --git a/templates/httpd/nagios_conf.erb b/templates/httpd/nagios_conf.erb index 7ca0f6c..46561ce 100644 --- a/templates/httpd/nagios_conf.erb +++ b/templates/httpd/nagios_conf.erb @@ -60,7 +60,7 @@ Alias /nagios "/usr/share/nagios/html" <% @ng_required_hosts.each do |required_host| -%> Require host <%= required_host %> <% end end -%> -<% if @ng_required_ips [] -%> +<% if @ng_required_ips != [] -%> <% @ng_required_ips.each do |required_ips| -%> Require ip <%= required_ips %> <% end end -%>