1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 18:38:30 +00:00

Bugfix warning messages

Odd number of elements in hash assignment at /etc/munin/plugins/varnish_bans line 884.
Use of uninitialized value $ident in hash element at /etc/munin/plugins/varnish_bans line 927.
This commit is contained in:
Léo POIROUX 2014-07-29 09:39:47 +02:00 committed by Ingo Oppermann
parent d658c583e8
commit cc15e33453

View file

@ -923,7 +923,7 @@ sub xml_commit_state
if ($key eq 'flag') { if ($key eq 'flag') {
$data = translate_type($data); $data = translate_type($data);
} }
if (defined($type) and $type ne '' and defined($ident) and $ident ne '') { if (defined($type) and $type ne "" and defined($ident) and $ident ne "") {
$data{$type}{$ident}{$name}{$key} = $data; $data{$type}{$ident}{$name}{$key} = $data;
} else { } else {
$data{$name}{$key} = $data $data{$name}{$key} = $data