Skip to content

Commit

Permalink
minor improvement in ta_ucc_helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
VatsalJagani committed Nov 25, 2024
1 parent d7d5b6f commit 1a61164
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utilities/ucc_additional_packaging/ucc_ta_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ def write_event(data, timestamp=None, index=None, sourcetype=None, source=None):
_sourcetype = index if sourcetype else input_details.get("sourcetype")
_source = index if source else input_details.get("source")

if type(data) is dict:
data = json.dumps(data)

event_writer.write_event(
smi.Event(
time=timestamp,
Expand Down

0 comments on commit 1a61164

Please sign in to comment.