Skip to content

Commit

Permalink
fix(app): Fix string_typing 'tuple' not callable error when pulling…
Browse files Browse the repository at this point in the history
… threats from PAN-OS

PR #235
  • Loading branch information
5tevebaker authored Mar 30, 2022
1 parent 92f83af commit 5cc9ea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SplunkforPaloAltoNetworks/bin/panContentPack.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ def parse_threats(threats_xml):
raise e
# convert all out of unicode
for key in a:
a[key] = string_types(a[key])
logger.debug(key + ': ' + a[key])
a[key] = str(a[key])
csv_threats.append(a)
logger.info("Found %s threats" % len(csv_threats))
return csv_threats
Expand Down

0 comments on commit 5cc9ea7

Please sign in to comment.