From 23556f469872e0602ae7dc7065050bbafff7134f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 11 Sep 2026 19:34:21 -0400 Subject: [PATCH] Fix potential uninitialized variable in get_switchcreds --- confluent_server/confluent/networking/switchutil.py | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_server/confluent/networking/switchutil.py b/confluent_server/confluent/networking/switchutil.py index 62bc2cbb..f2c92c83 100644 --- a/confluent_server/confluent/networking/switchutil.py +++ b/confluent_server/confluent/networking/switchutil.py @@ -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',