mirror of
https://github.com/xcat2/confluent.git
synced 2025-08-28 05:50:30 +00:00
Tolerate empty string to be blank snmp user
For SNMP password without user, accept '' as a synonym for None
This commit is contained in:
@@ -34,6 +34,8 @@ def get_switchcreds(configmanager, switches):
|
||||
'public')
|
||||
user = switchparms.get(
|
||||
'secret.hardwaremanagementuser', {}).get('value', None)
|
||||
if not user:
|
||||
user = None
|
||||
switchauth.append((switch, password, user))
|
||||
return switchauth
|
||||
|
||||
|
Reference in New Issue
Block a user