Skip to content

Commit ccdb12b

Browse files
committed
Update binding.py
1 parent 46bd4cc commit ccdb12b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splunklib/binding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def mask_sensitive_data(data):
9393
except Exception as ex:
9494
return data
9595

96-
# json.loads will return "123"(str) as 123(int), so return the data
97-
if isinstance(data, int):
96+
# json.loads will return "123"(str) as 123(int), so return the data if it's not 'dict' type
97+
if not isinstance(data, dict):
9898
return data
9999
mdata = {}
100100
for k, v in data.items():

0 commit comments

Comments
 (0)