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