bug - SmartStatus alert action - Python exception in some circumstances when accessing the anomaly_reason
The SmartStatus alert action can raise an exception while trying to investigate the anomaly_reason field
2024-07-10 07:29:41,709 ERROR trackme_rest_handler.py handle 250 Failed to handle request due to an unhandled exception
Traceback (most recent call last):
File "/opt/splunk/etc/apps/trackme/lib/trackme_rest_handler.py", line 237, in handle
return function_to_call(request_info, **query)
File "/opt/splunk/etc/apps/trackme/bin/trackme_rest_handler_splk_smart_status.py", line 187, in post_ds_smart_status
anomaly_reason = anomaly_reason.split("|")
AttributeError: 'list' object has no attribute 'split'
bug - SmartStatus alert action - Python exception in some circumstances when accessing the anomaly_reason