From f4930f95826177758c55d0a837cb93fb994b7b82 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Mon, 15 Jan 2018 08:17:28 +0000 Subject: [PATCH] Fix for PoE setting missing a variable declaration (R. Lewis) --- Changes | 6 ++++++ lib/App/Netdisco/Worker/Plugin/Power.pm | 2 ++ 2 files changed, 8 insertions(+) diff --git a/Changes b/Changes index 6647488b..6158a638 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +2.038028 + + [BUG FIXES] + + * Fix for PoE setting missing a variable declaration (R. Lewis) + 2.038009 [BUG FIXES] diff --git a/lib/App/Netdisco/Worker/Plugin/Power.pm b/lib/App/Netdisco/Worker/Plugin/Power.pm index 16cba738..81099b48 100644 --- a/lib/App/Netdisco/Worker/Plugin/Power.pm +++ b/lib/App/Netdisco/Worker/Plugin/Power.pm @@ -9,6 +9,8 @@ use App::Netdisco::Util::Port ':all'; register_worker({ phase => 'check' }, sub { my ($job, $workerconf) = @_; + my ($device, $pn) = map {$job->$_} qw/device port/; + return Status->error('Missing device (-d).') unless defined $job->device; return Status->error('Missing port (-p).') unless defined $job->port; return Status->error('Missing status (-e).') unless defined $job->subaction;