diff --git a/lib/App/Netdisco/Util/SNMP.pm b/lib/App/Netdisco/Util/SNMP.pm index 15339c84..57b504ee 100644 --- a/lib/App/Netdisco/Util/SNMP.pm +++ b/lib/App/Netdisco/Util/SNMP.pm @@ -300,7 +300,7 @@ sub _build_communities { if not $stanza->{tag} and !exists $stanza->{community}; - if ($stanza->{$mode} and check_acl($device->ip, $stanza->{only})) { + if ($stanza->{$mode} and check_acl($device, $stanza->{only})) { if ($device->in_storage and $stored_tag and $stored_tag eq $stanza->{tag}) { # last known-good by tag