Skip to content

Commit

Permalink
Update binding.py
Browse files Browse the repository at this point in the history
  • Loading branch information
akaila-splunk committed Jul 12, 2023
1 parent 46bd4cc commit ccdb12b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions splunklib/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def mask_sensitive_data(data):
except Exception as ex:
return data

# json.loads will return "123"(str) as 123(int), so return the data
if isinstance(data, int):
# json.loads will return "123"(str) as 123(int), so return the data if it's not 'dict' type
if not isinstance(data, dict):
return data
mdata = {}
for k, v in data.items():
Expand Down

0 comments on commit ccdb12b

Please sign in to comment.