Skip to content

Commit

Permalink
Xdrir fix polling timeout (#27238)
Browse files Browse the repository at this point in the history
* XDRIR fix polling timeout parameter

* Added RNs
  • Loading branch information
darkushin authored and ostolero committed Jun 14, 2023
1 parent 5765b56 commit bcb977f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Packs/ApiModules/Scripts/CoreIRApiModule/CoreIRApiModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -2990,7 +2990,8 @@ def get_script_code_command(client: CoreClient, args: Dict[str, str]) -> Tuple[s
@polling_function(
name=demisto.command(),
interval=arg_to_number(demisto.args().get('polling_interval_in_seconds', 10)),
timeout=arg_to_number(demisto.args().get('polling_timeout', 600)),
# Check for both 'polling_timeout_in_seconds' and 'polling_timeout' to avoid breaking BC:
timeout=arg_to_number(demisto.args().get('polling_timeout_in_seconds', demisto.args().get('polling_timeout', 600))),
requires_polling_arg=False # means it will always be default to poll, poll=true
)
def script_run_polling_command(args: dict, client: CoreClient) -> PollResult:
Expand Down
6 changes: 6 additions & 0 deletions Packs/Core/ReleaseNotes/1_4_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Investigation & Response

- Fixed an issue in the ***CoreIRApiModule***.
2 changes: 1 addition & 1 deletion Packs/Core/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Core - Investigation and Response",
"description": "Automates incident response",
"support": "xsoar",
"currentVersion": "1.4.0",
"currentVersion": "1.4.1",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
6 changes: 6 additions & 0 deletions Packs/CortexXDR/ReleaseNotes/4_11_4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Palo Alto Networks Cortex XDR - Investigation and Response

- Fixed an issue in the ***xdr-script-run*** command where the polling timeout parameter was not handled correctly.
2 changes: 1 addition & 1 deletion Packs/CortexXDR/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Cortex XDR by Palo Alto Networks",
"description": "Automates Cortex XDR incident response, and includes custom Cortex XDR incident views and layouts to aid analyst investigations.",
"support": "xsoar",
"currentVersion": "4.11.3",
"currentVersion": "4.11.4",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit bcb977f

Please sign in to comment.