#551 better error message for both device_auth and snmp_auth
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user