Fix warning when nigthly process is running

This commit is contained in:
Benjamin Renard 2018-02-26 11:40:38 +01:00
parent 2c2f68dc98
commit c6754da976

View file

@ -221,7 +221,7 @@ if ( $statusCode eq 'OK' ) {
next if (@hostsExcluded and grep {/^$host$/} @hostsExcluded);
next if ( $Status{$host}{BackupsDisable} );
next if ($Status{$host}{'type'} eq 'archive');
if ( $Status{$host}{statusCode} ne 'OK' ) {
if ( $Status{$host}{statusCode} && $Status{$host}{statusCode} ne 'OK' ) {
$statusMsg .= ", " unless ( $first_host );
$statusMsg .= "$host: ".$Status{$host}{statusCode}." - ".$Status{$host}{statusMsg};
$first_host = 0 if ( $first_host );