Fix "no hosts to update" warning condition

This commit is contained in:
Richard Hansen 2024-05-14 17:33:35 -04:00
parent 542bb28a13
commit 498df75790

View file

@ -1283,7 +1283,7 @@ sub main {
$result = 0;
} elsif (!scalar(%config)) {
warning("no hosts to update.") unless !opt('quiet') || opt('verbose') || !$daemon;
warning("no hosts to update.") if !opt('quiet');
$result = 1;
} else {