diff --git a/lib/App/Netdisco/Util/DeviceAuth.pm b/lib/App/Netdisco/Util/DeviceAuth.pm index 034ab669..92298881 100644 --- a/lib/App/Netdisco/Util/DeviceAuth.pm +++ b/lib/App/Netdisco/Util/DeviceAuth.pm @@ -37,7 +37,8 @@ sub fixup_device_auth { my $da = dclone (setting('device_auth') || []); my $sa = dclone (setting('snmp_auth') || []); - die "error: both snmp_auth and device_auth are defined! use only device_auth.\n" + die "error: both snmp_auth and device_auth are defined!\n" + . "move snmp_auth config into device_auth and remove snmp_auth.\n" if scalar @$da and scalar @$sa; my $config = ((scalar @$da) ? $da : $sa);