mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01: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:
parent
acad90146d
commit
ed8a615e55
@ -885,7 +885,6 @@ sub usage
|
||||
my %state = (
|
||||
'stat' => 0, # inside <stat> or not
|
||||
'field' => 'none', # <name>, <value>, <stat>, etc.
|
||||
'values' => ()
|
||||
);
|
||||
|
||||
# Reset the state of XML, mainly used for end-elements.
|
||||
@ -924,7 +923,7 @@ sub xml_commit_state
|
||||
if ($key eq 'flag') {
|
||||
$data = translate_type($data);
|
||||
}
|
||||
if (defined($type) and $type ne "") {
|
||||
if (defined($type) and $type ne "" and defined($ident) and $ident ne "") {
|
||||
$data{$type}{$ident}{$name}{$key} = $data;
|
||||
} else {
|
||||
$data{$name}{$key} = $data
|
||||
|
Loading…
Reference in New Issue
Block a user