avoid extra device lookup

This commit is contained in:
Oliver Gorwits
2017-05-23 13:18:30 +01:00
parent b55854e91d
commit 3944dd7813
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ sub discover {
}
# failsafe, should not be needed with skip checks
unless (is_discoverable_now($device->ip)) {
unless (is_discoverable_now($device)) {
return job_defer("discover deferred: $host is not discoverable");
}