fix unknown command check in netdisco-do

This commit is contained in:
Oliver Gorwits
2017-10-06 07:18:03 +01:00
parent 3af13f0dfe
commit e44f06364a

View File

@@ -139,7 +139,7 @@ foreach my $host (@hostlist) {
$job->log("error running job: $_");
};
if ($job->log eq 'check phase did not pass for this action') {
if ($job->log eq 'no worker succeeded during main phase') {
pod2usage(
-msg => (sprintf 'error: %s is not a valid action', $action),
-verbose => 2,