mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-12 04:26:26 +00:00
Fix potential uninitialized variable in get_switchcreds
This commit is contained in:
@@ -40,6 +40,7 @@ def get_switchcreds(configmanager, switches):
|
||||
password = switchparms.get(
|
||||
'secret.snmpcommunity', {}).get('value', None)
|
||||
privacy_protocol = None
|
||||
auth_protocol = None
|
||||
if not password:
|
||||
password = switchparms.get(
|
||||
'secret.hardwaremanagementpassword', {}).get('value',
|
||||
|
||||
Reference in New Issue
Block a user