diff --git a/Changes b/Changes index 45940c06..1b779f1e 100644 --- a/Changes +++ b/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] diff --git a/lib/App/Netdisco/Worker/Plugin/Discover.pm b/lib/App/Netdisco/Worker/Plugin/Discover.pm index f3b48352..7c25daeb 100644 --- a/lib/App/Netdisco/Worker/Plugin/Discover.pm +++ b/lib/App/Netdisco/Worker/Plugin/Discover.pm @@ -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);