From 442fd08f623728f1a9714a9aa78ed482925882f5 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Fri, 21 Jul 2017 13:44:03 +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 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 -%>