#413 manual retrigger of discovery does not work

This commit is contained in:
Oliver Gorwits
2018-05-05 16:00:14 +01:00
parent 74825aff37
commit fa6f70ac8a
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2.039028 - 2018-05-05
[BUG FIXES]
* #413 manual retrigger of discovery does not work
2.039027 - 2018-04-28
[BUG FIXES]

View File

@@ -21,7 +21,8 @@ register_worker({ phase => 'check' }, sub {
# runner has already called get_device to promote $job->device
return $job->cancel("fresh discover cancelled: $device already known")
if $device->in_storage and $job->subaction eq 'with-nodes';
if $device->in_storage
and ($job->subaction eq 'with-nodes' and not $job->username);
return Status->defer("discover deferred: $device is not discoverable")
unless is_discoverable_now($device);