From ec041dafd266df116e4b0f716121cf7031593152 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Tue, 1 Aug 2017 15:34:37 +0100 Subject: [PATCH] the other way around --- lib/App/Netdisco/Core/Plugin.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/App/Netdisco/Core/Plugin.pm b/lib/App/Netdisco/Core/Plugin.pm index 94f5333d..98fae721 100644 --- a/lib/App/Netdisco/Core/Plugin.pm +++ b/lib/App/Netdisco/Core/Plugin.pm @@ -28,9 +28,9 @@ register 'register_core_driver' => sub { return false unless (ref $device and (ref {} eq ref $userconf)); # first check internal (driverconf) exclusion/inclusion criteria - return false if ($no and check_acl_no($device, $no)); - return false if ($only and not (exists $userconf->{driver}) - and not check_acl_only($device, $only)); + return false if ($only and not check_acl_only($device, $only)); + return false if ($no and (not exists $userconf->{driver}) + and check_acl_no($device, $only)); # then check external (userconf) exclusion/inclusion criteria return false if exists $userconf->{phase}