From: Stephen Gran Date: Sat, 12 Dec 2009 22:38:43 +0000 (+0000) Subject: minor bugfix: stop the interpreter from complaining about an uninitialized hash eleme... X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=67b7b222c6dea35067075da1bb6b3b6d8c5dc1a5;p=mirror%2Fdsa-nagios.git minor bugfix: stop the interpreter from complaining about an uninitialized hash element in map call Signed-off-by: Stephen Gran --- diff --git a/dsa-nagios-checks/checks/dsa-check-mirrorsync b/dsa-nagios-checks/checks/dsa-check-mirrorsync index af37983..488a7bc 100755 --- a/dsa-nagios-checks/checks/dsa-check-mirrorsync +++ b/dsa-nagios-checks/checks/dsa-check-mirrorsync @@ -110,6 +110,7 @@ foreach my $slave (@slaves) { else { push @exitstatus, "$slave broken: " . $response->status_line; $status->{$slave}->{'error'} = $response->status_line; + $status->{$slave}->{'synced'} = 0; $exitcode = $CRITICAL; push @critical, $slave; }