2
0
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:
Jarrod Johnson
2026-09-11 19:34:21 -04:00
parent e59e274bb4
commit 23556f4698
@@ -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',