Allow netdisco-do show to run when no func is available to handle request
This commit is contained in:
4
Changes
4
Changes
@@ -8,6 +8,10 @@
|
|||||||
[ENHANCEMENTS]
|
[ENHANCEMENTS]
|
||||||
|
|
||||||
* Do not attempt Canonical IP change to non-discoverable IP
|
* Do not attempt Canonical IP change to non-discoverable IP
|
||||||
|
* Allow netdisco-do show to run when no func is available to handle request
|
||||||
|
* Allow netdisco-do show to run when no func is available to handle request
|
||||||
|
* Allow netdisco-do show to run when no func is available to handle request
|
||||||
|
* Allow netdisco-do show to run when no func is available to handle request
|
||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ register_worker({ phase => 'main', driver => 'snmp' }, sub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $i = App::Netdisco::Transport::SNMP->reader_for($device, $class);
|
my $i = App::Netdisco::Transport::SNMP->reader_for($device, $class);
|
||||||
Data::Printer::p($i->$extra($port));
|
my $result = sub { eval { $i->$extra($port) } || undef };
|
||||||
|
Data::Printer::p( $result->() );
|
||||||
|
|
||||||
return Status->done(
|
return Status->done(
|
||||||
sprintf "Showed %s response from %s", $extra, $device->ip);
|
sprintf "Showed %s response from %s", $extra, $device->ip);
|
||||||
|
|||||||
Reference in New Issue
Block a user