Skip to content

Commit 0a2dac3

Browse files
author
Björn Thoor
committed
chore: changed data type to array
1 parent bc2240c commit 0a2dac3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

manifests/init.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
$cachesize = $zabbix::params::server_cachesize,
306306
$cacheupdatefrequency = $zabbix::params::server_cacheupdatefrequency,
307307
$startdbsyncers = $zabbix::params::server_startdbsyncers,
308-
Optional[String] $smsdevices = $zabbix::params::server_smsdevices,
308+
Optional[Array[String[1]]] $smsdevices = $zabbix::params::server_smsdevices,
309309
$historycachesize = $zabbix::params::server_historycachesize,
310310
Zabbix::Historyics $historyindexcachesize = $zabbix::params::server_historyindexcachesize,
311311
$trendcachesize = $zabbix::params::server_trendcachesize,

templates/zabbix_server.conf.erb

+2-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,8 @@ LoadModulePath=<%= @loadmodulepath %>
962962
# Mandatory: no
963963
# Default:
964964
# SMSDevices=
965-
<% if @smsdevices -%>SMSDevices=<%= @smsdevices %><% end %>
965+
<% if @smsdevices.any? -%>
966+
SMSDevices=<%= @smsdevices.join(',') %>
966967
<% end %>
967968

968969
<% if @zabbix_version.to_f >= 5.4 %>

0 commit comments

Comments
 (0)