Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix xdr list risky hosts docs #29178

Merged
merged 12 commits into from Aug 29, 2023
Expand Up @@ -3903,7 +3903,7 @@ def _warn_if_module_is_disabled(e: DemistoException) -> None:
if error_message := enrich_error_message_id_group_role(e=e, type_="id", custom_message=""):
not_found_message = 'was not found'
if not_found_message in error_message:
return CommandResults(readable_output=f'The user {id_} {not_found_message}')
return CommandResults(readable_output=f'The {command} {id_} {not_found_message}')
else:
raise DemistoException(error_message)
else:
Expand Down
Expand Up @@ -3275,7 +3275,7 @@ def __init__(self, status_code) -> None:
)

result = list_risky_users_or_host_command(client, command, {id_: "test"})
assert result.readable_output == 'The user test was not found'
assert result.readable_output == f'The {command} test was not found'


@pytest.mark.parametrize(
Expand Down
6 changes: 6 additions & 0 deletions Packs/Core/ReleaseNotes/2_0_11.md
@@ -0,0 +1,6 @@

#### Integrations

##### Investigation & Response

- Fixed an issue where **xdr-list-risky-hosts** returned wrong outputs in case no hosts were found.
2 changes: 1 addition & 1 deletion Packs/Core/pack_metadata.json
Expand Up @@ -2,7 +2,7 @@
"name": "Core - Investigation and Response",
"description": "Automates incident response",
"support": "xsoar",
"currentVersion": "2.0.10",
"currentVersion": "2.0.11",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
3 changes: 1 addition & 2 deletions Packs/CortexXDR/Integrations/CortexXDRIR/CortexXDRIR.yml
Expand Up @@ -3339,8 +3339,7 @@ script:
description: The score.
type: Number
- arguments:
- description: >
Unique ID of a specific host.
- description: The name of the host.
name: host_id
- description: Limit the number of hosts that will appear in the list. By default, the limit is 50 hosts.(Use limit when no specific host is requested.)
name: limit
Expand Down
2 changes: 1 addition & 1 deletion Packs/CortexXDR/Integrations/CortexXDRIR/README.md
Expand Up @@ -3012,7 +3012,7 @@ Required license: Cortex XDR Pro per Endpoint, Cortex XDR Pro, or Cortex XDR Pro

| **Argument Name** | **Description** | **Required** |
| --- | --- | --- |
| host_id | Unique ID of a specific host.<br/>. | Optional |
| host_id | The name of the host. | Optional |
| limit | Limit the number of hosts that will appear in the list. By default, the limit is 50 hosts.(Use limit when no specific host is requested.). Default is 50. | Optional |

#### Context Output
Expand Down
4 changes: 4 additions & 0 deletions Packs/CortexXDR/ReleaseNotes/5_1_2.md
@@ -0,0 +1,4 @@
#### Integrations

##### Palo Alto Networks Cortex XDR - Investigation and Response
- Fixed an issue where **xdr-list-risky-hosts** returned wrong outputs in case no hosts were found.
2 changes: 1 addition & 1 deletion Packs/CortexXDR/pack_metadata.json
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": "5.1.1",
"currentVersion": "5.1.2",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down