Skip to content

Commit

Permalink
type annotation fix (demisto#35317)
Browse files Browse the repository at this point in the history
* type annotation fix

* RN
  • Loading branch information
barryyosi-panw authored and xsoar-bot committed Sep 10, 2024
1 parent c98b60a commit f007dc7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Packs/CortexXDR/Integrations/CortexXDRIR/CortexXDRIR.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ def get_xsoar_close_reasons():
Get the default XSOAR close-reasons in addition to custom close-reasons from server configuration.
"""
default_xsoar_close_reasons = list(XSOAR_RESOLVED_STATUS_TO_XDR.keys())
custom_close_reasons = []
custom_close_reasons: List[str] = []
try:
server_config = get_server_config()
demisto.debug(f'get_xsoar_close_reasons server-config: {str(server_config)}')
if server_config:
custom_close_reasons: list = argToList(server_config.get('incident.closereasons', ''))
custom_close_reasons = argToList(server_config.get('incident.closereasons', ''))
except Exception as e:
demisto.error(f"Could not get server configuration: {e}")
return default_xsoar_close_reasons + custom_close_reasons
Expand Down
6 changes: 6 additions & 0 deletions Packs/CortexXDR/ReleaseNotes/6_1_55.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 with code lint.
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": "6.1.54",
"currentVersion": "6.1.55",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit f007dc7

Please sign in to comment.