Skip to content

Commit 9d7dbd8

Browse files
Cleaned up the hyperflex cluster Encryption pruning
1 parent 4a9e833 commit 9d7dbd8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

input_module_intersight.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,9 @@ def write_splunk(index, source, sourcetype, data):
489489
['Ancestors', 'Cluster', 'Owners', 'DomainGroupMoid', 'PermissionResources', 'RegisteredDevice'], data['License'])
490490
data['RegisteredDevice'] = pop(
491491
['ClassId', 'ObjectType'], data['RegisteredDevice'])
492-
data['Encryption'] = pop(
493-
['ClassId', 'ObjectType', 'Moid'], data['Encryption'])
492+
if data['Encryption'] != None:
493+
data['Encryption'] = pop(
494+
['ClassId', 'ObjectType', 'Moid'], data['Encryption'])
494495
data['AlarmSummary'] = pop(
495496
['ClassId', 'ObjectType'], data['AlarmSummary'])
496497
write_splunk(index, account_name,

0 commit comments

Comments
 (0)