import legacy sshcollector config

This commit is contained in:
Oliver Gorwits
2019-03-11 20:44:26 +00:00
parent 98d7a71024
commit ed675b249c
2 changed files with 18 additions and 1 deletions

View File

@@ -84,6 +84,7 @@ if ((setting('snmp_auth') and 0 == scalar @{ setting('snmp_auth') })
config->{'community_rw'} = [ @{setting('community_rw')}, 'private' ];
}
# fix up device_auth (or create it from old snmp_auth and community settings)
# also imports legacy sshcollcetor config
config->{'device_auth'}
= [ App::Netdisco::Util::DeviceAuth::fixup_device_auth() ];