Skip to content

Commit

Permalink
[JoeSecurity] show partial result in polling commands (demisto#29715)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilaner authored and maimorag committed Sep 28, 2023
1 parent f5c3219 commit 647e83e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Packs/JoeSecurity/Integrations/JoeSecurityV2/JoeSecurityV2.py
Expand Up @@ -556,10 +556,11 @@ def polling_submit_command(args: Dict[str, Any], client: Client, params: Dict[st
command_results = build_submission_command_result(client, res, args, exe_metrics, True)
return PollResult(command_results)
return PollResult(
response=[CommandResults(outputs=res, # this is what the response will be in case job has finished
outputs_prefix='Joe.Submission', outputs_key_field='submission_id',
readable_output=f'Waiting for submission "{res.get("submission_id")}" to finish...'),
CommandResults(execution_metrics=exe_metrics.get_metric_list())], continue_to_poll=True,
response=None,
partial_result=[CommandResults(outputs=res, # this is what the response will be in case job has finished
outputs_prefix='Joe.Submission', outputs_key_field='submission_id',
readable_output=f'Waiting for submission "{res.get("submission_id")}" to finish...'),
CommandResults(execution_metrics=exe_metrics.get_metric_list())], continue_to_poll=True,
args_for_next_run={'submission_id': args.get('submission_id'), **args})
else:
if file := args.get('entry_id'):
Expand Down
7 changes: 7 additions & 0 deletions Packs/JoeSecurity/ReleaseNotes/1_1_13.md
@@ -0,0 +1,7 @@

#### Integrations

##### Joe Security v2

- Fixed an issue where ***joe-submit-url*** and ***joe-submit-sample*** set the `submission_id` in the context during polling.
- Updated the Docker image to: *demisto/joe-security:1.0.0.73481*.
2 changes: 1 addition & 1 deletion Packs/JoeSecurity/pack_metadata.json
Expand Up @@ -2,7 +2,7 @@
"name": "Joe Security",
"description": "Sandbox Cloud",
"support": "xsoar",
"currentVersion": "1.1.12",
"currentVersion": "1.1.13",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit 647e83e

Please sign in to comment.