Fix for PoE setting missing a variable declaration (R. Lewis)
This commit is contained in:
6
Changes
6
Changes
@@ -1,3 +1,9 @@
|
||||
2.038028
|
||||
|
||||
[BUG FIXES]
|
||||
|
||||
* Fix for PoE setting missing a variable declaration (R. Lewis)
|
||||
|
||||
2.038009
|
||||
|
||||
[BUG FIXES]
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user