Révision ed8a615e
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.
| plugins/varnish4/varnish4_ | ||
|---|---|---|
| 885 | 885 |
my %state = ( |
| 886 | 886 |
'stat' => 0, # inside <stat> or not |
| 887 | 887 |
'field' => 'none', # <name>, <value>, <stat>, etc. |
| 888 |
'values' => () |
|
| 889 | 888 |
); |
| 890 | 889 |
|
| 891 | 890 |
# Reset the state of XML, mainly used for end-elements. |
| ... | ... | |
| 924 | 923 |
if ($key eq 'flag') {
|
| 925 | 924 |
$data = translate_type($data); |
| 926 | 925 |
} |
| 927 |
if (defined($type) and $type ne "") {
|
|
| 926 |
if (defined($type) and $type ne "" and defined($ident) and $ident ne "") {
|
|
| 928 | 927 |
$data{$type}{$ident}{$name}{$key} = $data;
|
| 929 | 928 |
} else {
|
| 930 | 929 |
$data{$name}{$key} = $data
|
Formats disponibles : Unified diff