From d90d26765b40916008da435e7d5ceb8bd4229400 Mon Sep 17 00:00:00 2001 From: Robert Wolf Date: Thu, 23 May 2024 01:47:23 +0200 Subject: [PATCH] correct type check --- templates/zabbix_agentd.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/zabbix_agentd.conf.erb b/templates/zabbix_agentd.conf.erb index e96b82f9..189c8dca 100644 --- a/templates/zabbix_agentd.conf.erb +++ b/templates/zabbix_agentd.conf.erb @@ -310,7 +310,7 @@ LoadModulePath=<%= @loadmodulepath %> # Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection) # Default: # TLSAccept=unencrypted -<% if @tlsaccept %>TLSAccept=<% if scope.call_function('type',[@tlsaccept,'generalized']) == Array %><%= scope.call_function('join', [@tlsaccept, ',']) %><% else %><%= @tlsaccept %><% end %><% end %> +<% if @tlsaccept and ( @tlsaccept.instance_of?(Array) or @tlsaccept.instance_of?(String) ) %>TLSAccept=<% if @tlsaccept.instance_of?(Array) %><%= scope.call_function('join', [@tlsaccept, ',']) %><% elsif @tlsaccept.instance_of?(String) %><%= @tlsaccept %><% end %><% end %> ### Option: TLSCAFile # Full pathname of a file containing the top-level CA(s) certificates for