avoid extra device lookup
This commit is contained in:
@@ -55,7 +55,7 @@ sub discover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# failsafe, should not be needed with skip checks
|
# 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");
|
return job_defer("discover deferred: $host is not discoverable");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ sub nbtstat {
|
|||||||
my $host = $device->ip;
|
my $host = $device->ip;
|
||||||
|
|
||||||
# failsafe, should not be needed with skip checks
|
# failsafe, should not be needed with skip checks
|
||||||
unless (is_macsuckable($device->ip)) {
|
unless (is_macsuckable($device)) {
|
||||||
return job_defer("nbtstat deferred: $host is not macsuckable");
|
return job_defer("nbtstat deferred: $host is not macsuckable");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user