From a30233bf33af64c0577c7962bb235ed3ebd886e9 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 23 Nov 2016 19:18:10 +0100 Subject: [PATCH] Force ini syntax Prevent error when the config is empty --- zabbix_scripts/disco_sensors | 1 + 1 file changed, 1 insertion(+) diff --git a/zabbix_scripts/disco_sensors b/zabbix_scripts/disco_sensors index 411fafe..bbc42d8 100644 --- a/zabbix_scripts/disco_sensors +++ b/zabbix_scripts/disco_sensors @@ -17,6 +17,7 @@ my $json; my $cfg = new Config::Simple; $cfg->read('/etc/zabbix/sensors.ini'); +$cfg->syntax('ini'); my %sensors = (); foreach my $k (keys %{$cfg->vars}){ $k =~ s/\..*$//;