Alter order of snmp_auth and device_auth config build

This commit is contained in:
Oliver Gorwits
2017-12-22 23:44:36 +00:00
parent 7db6593211
commit 8479914b2b
4 changed files with 10 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ config changes over time. Returns a list which can replace C<device_auth>.
=cut
sub fixup_device_auth {
my $config = (setting('device_auth') || setting('snmp_auth') || []);
my $config = (setting('snmp_auth') || setting('device_auth'));
my @new_stanzas = ();
# new style snmp config