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

@@ -16,7 +16,7 @@ register_worker({ phase => 'check' }, sub {
return Status->error("discover failed: no device param (need -d ?)")
if $device->ip eq '0.0.0.0';
return Status->defer("discover skipped: $device is pseudo-device")
return Status->info("discover skipped: $device is pseudo-device")
if $device->is_pseudo;
# runner has already called get_device to promote $job->device
@@ -24,7 +24,7 @@ register_worker({ phase => 'check' }, sub {
if $device->in_storage
and ($job->subaction eq 'with-nodes' and not $job->username);
return Status->defer("discover deferred: $device is not discoverable")
return Status->info("discover skipped: $device is not discoverable")
unless is_discoverable_now($device);
return Status->done('Discover is able to run.');