From a28f890bdde57e2c6c99d8ef57b5aefef9ae95f8 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Fri, 21 Jul 2017 13:30:09 +0100 Subject: [PATCH] testing options both for hosts and ips --- templates/httpd/nagios_conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/httpd/nagios_conf.erb b/templates/httpd/nagios_conf.erb index 46561ce..41e9bff 100644 --- a/templates/httpd/nagios_conf.erb +++ b/templates/httpd/nagios_conf.erb @@ -19,7 +19,7 @@ ScriptAlias /nagios/cgi-bin/ "/usr/lib64/nagios/cgi-bin/" = 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 -%>