diff --git a/Changes b/Changes index cdf4dbd2..63bb8b61 100644 --- a/Changes +++ b/Changes @@ -8,6 +8,10 @@ [ENHANCEMENTS] * 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] diff --git a/lib/App/Netdisco/Worker/Plugin/Show.pm b/lib/App/Netdisco/Worker/Plugin/Show.pm index c6f93b40..52a2ca55 100644 --- a/lib/App/Netdisco/Worker/Plugin/Show.pm +++ b/lib/App/Netdisco/Worker/Plugin/Show.pm @@ -28,7 +28,8 @@ register_worker({ phase => 'main', driver => 'snmp' }, sub { } 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( sprintf "Showed %s response from %s", $extra, $device->ip);