#413 manual retrigger of discovery does not work
This commit is contained in:
6
Changes
6
Changes
@@ -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]
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user