mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-26 02:48:28 +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:
parent
acad90146d
commit
ed8a615e55
1 changed files with 1 additions and 2 deletions
|
@ -885,7 +885,6 @@ sub usage
|
||||||
my %state = (
|
my %state = (
|
||||||
'stat' => 0, # inside <stat> or not
|
'stat' => 0, # inside <stat> or not
|
||||||
'field' => 'none', # <name>, <value>, <stat>, etc.
|
'field' => 'none', # <name>, <value>, <stat>, etc.
|
||||||
'values' => ()
|
|
||||||
);
|
);
|
||||||
|
|
||||||
# Reset the state of XML, mainly used for end-elements.
|
# Reset the state of XML, mainly used for end-elements.
|
||||||
|
@ -924,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 "") {
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue