avoid defer in more cases so that devices do not become skipped from all jobs

This commit is contained in:
Oliver Gorwits
2019-03-19 19:13:02 +00:00
parent 4ef5691bb5
commit 39805adf69
5 changed files with 11 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ register_worker({ phase => 'check' }, sub {
return Status->error('nbtstat failed: unable to interpret device param')
unless defined $job->device;
return Status->defer(sprintf 'nbtstat deferred: %s is not macsuckable', $job->device->ip)
return Status->info(sprintf 'nbtstat skipped: %s is not macsuckable', $job->device->ip)
unless is_macsuckable($job->device);
return Status->done('Nbtstat is able to run.');