Skip to content

Commit

Permalink
Fix xdr list risky hosts docs (demisto#29178)
Browse files Browse the repository at this point in the history
* doc fixes

* added rn

* fixes

* fixes

* Bump pack from version CortexXDR to 5.1.1.

* fix conflicts

* Bump pack from version Core to 2.0.11.

---------

Co-authored-by: Content Bot <bot@demisto.com>
  • Loading branch information
2 people authored and xsoar-bot committed Oct 5, 2023
1 parent 303f81b commit fea2652
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 7 deletions.
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

0 comments on commit fea2652

Please sign in to comment.