mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Ignore error values when listing Windows SNMP community strings
This commit is contained in:
parent
5baf2650fc
commit
dc20e4651b
1 changed files with 5 additions and 0 deletions
|
@ -303,6 +303,11 @@ def get_community_names():
|
|||
# Windows SNMP service GUI.
|
||||
if isinstance(current_values, list):
|
||||
for current_value in current_values:
|
||||
|
||||
# Ignore error values
|
||||
if not isinstance(current_value, dict):
|
||||
continue
|
||||
|
||||
permissions = str()
|
||||
for permission_name in _PERMISSION_TYPES:
|
||||
if current_value['vdata'] == _PERMISSION_TYPES[permission_name]:
|
||||
|
|
Loading…
Add table
Reference in a new issue