Return from device discover if device is unknown
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
* [#255] undefined host error in netdisco-do psql
|
* [#255] undefined host error in netdisco-do psql
|
||||||
* [#250] Linux SSHColletor cannot handle uppercase MACs
|
* [#250] Linux SSHColletor cannot handle uppercase MACs
|
||||||
|
* Return from device discover if device is unknown
|
||||||
|
|
||||||
2.033004 - 2015-11-16
|
2.033004 - 2015-11-16
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,9 @@ sub discover {
|
|||||||
my ($self, $job) = @_;
|
my ($self, $job) = @_;
|
||||||
|
|
||||||
my $device = get_device($job->device)
|
my $device = get_device($job->device)
|
||||||
or job_error("discover failed: unable to interpret device parameter");
|
or return job_error(
|
||||||
|
"discover failed: unable to interpret device parameter: "
|
||||||
|
. ($job->device || "''"));
|
||||||
my $host = $device->ip;
|
my $host = $device->ip;
|
||||||
|
|
||||||
if ($device->ip eq '0.0.0.0') {
|
if ($device->ip eq '0.0.0.0') {
|
||||||
|
|||||||
Reference in New Issue
Block a user