From 10ce6402ada48466d1abfee229885b5ce6d7c3d0 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Tue, 30 May 2017 12:02:22 +0100 Subject: [PATCH] strange scoping fix --- lib/App/Netdisco/Util/DNS.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/App/Netdisco/Util/DNS.pm b/lib/App/Netdisco/Util/DNS.pm index 09eea849..afd13fb5 100644 --- a/lib/App/Netdisco/Util/DNS.pm +++ b/lib/App/Netdisco/Util/DNS.pm @@ -8,7 +8,7 @@ use Net::DNS; use AnyEvent::DNS; use NetAddr::IP::Lite ':lower'; -use App::Netdisco::Util::Permission 'check_acl_no'; +use App::Netdisco::Util::Permission; use base 'Exporter'; our @EXPORT = (); @@ -129,7 +129,7 @@ sub hostnames_resolve_async { IP: foreach my $hash_ref (@$ips) { my $ip = $hash_ref->{'ip'} || $hash_ref->{'alias'}; - next IP if check_acl_no($ip, $skip); + next IP if App::Netdisco::Util::Permission::check_acl_no($ip, $skip); # check /etc/hosts file and short-circuit if found foreach my $name (reverse sort keys %HOSTS) {