Projet

Général

Profil

Révision ed8a615e

IDed8a615e551a3e5e2d27b7432a5156c9c9397e3e
Parent acad9014
Enfant d658c583

Ajouté par Léo POIROUX il y a plus de 10 ans

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.

Voir les différences:

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