From 60b279928ddf23e9c5d75312761eb8ba926980c8 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Wed, 10 Jan 2018 01:14:45 +0000 Subject: [PATCH] Fix for VLAN setting missing a variable declaration --- Changes | 6 ++++++ lib/App/Netdisco/Worker/Plugin/Vlan/Core.pm | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 493c19c6..6647488b 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +2.038009 + + [BUG FIXES] + + * Fix for VLAN setting missing a variable declaration + 2.038008 [BUG FIXES] diff --git a/lib/App/Netdisco/Worker/Plugin/Vlan/Core.pm b/lib/App/Netdisco/Worker/Plugin/Vlan/Core.pm index 4d66f2a8..42de031f 100644 --- a/lib/App/Netdisco/Worker/Plugin/Vlan/Core.pm +++ b/lib/App/Netdisco/Worker/Plugin/Vlan/Core.pm @@ -26,7 +26,7 @@ register_worker({ phase => 'main', driver => 'snmp' }, sub { return unless defined vars->{'iid'}; _action($job, 'pvid'); return _action($job, 'vlan'); -} +}); sub _action { my ($job, $slot) = @_; @@ -57,6 +57,6 @@ sub _action { vars->{'port'}->update({$slot => $data}); return Status->done("Updated [$pn] $slot on [$device] to [$data]"); -}); +} true;