I'm trying to get at the results of a phantom.act() action run, more specifically the Splunk HTTP app "get file" action. Something as simple as: # inside a custom code block
def get_action_results(**kwargs):
phantom.debug(action)
phantom.debug(success)
phantom.debug(results)
phantom.debug(handle)
return
phantom.act('get file', parameters=[{'hostname': '', 'file_path': '/path/to/file'}], assets=["web_server"], callback=get_action_results) The action will run as expected, however the callback isn't getting the results output. Am I misunderstanding callbacks in this scenario?
... View more