as last commit, for discover

This commit is contained in:
Oliver Gorwits
2019-08-26 11:35:13 +01:00
parent 61f9c89040
commit e0ddbaab08
2 changed files with 6 additions and 6 deletions

View File

@@ -16,9 +16,6 @@ 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->info("discover skipped: $device is pseudo-device")
if $device->is_pseudo;
# runner has already called get_device to promote $job->device
return $job->cancel("fresh discover cancelled: $device already known")
if $device->in_storage