fix detection of unknown action in netdisco-do

This commit is contained in:
Oliver Gorwits
2017-11-19 22:06:15 +00:00
parent e42a59c4b8
commit 4a51f83efc

View File

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