Skip to content

Commit

Permalink
Wildfire Reports - Reverted the content patch (demisto#29155)
Browse files Browse the repository at this point in the history
* Reverted the patch

* Updated the docker image tag

* Pre-commit fixes

* Added RN file
  • Loading branch information
ShacharKidor authored and xsoar-bot committed Oct 5, 2023
1 parent 6db5680 commit 20442d7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class Client(BaseClient):
def __init__(self, base_url: str, verify: bool = True, proxy: bool = False, ok_codes=tuple(), headers: dict = None,
def __init__(self, base_url: str, verify: bool = True, proxy: bool = False, ok_codes=(), headers: dict = None,
token: str = None):
super().__init__(base_url, verify, proxy, ok_codes, headers)
self.token = token
Expand All @@ -20,13 +20,7 @@ def get_agent():
Auto API expect the agent header to be 'xdr' when running from within XSIAM and 'xsoartim' when running from
within XSOAR (both on-prem and cloud).
"""
# This block is a patch - need to remove it once the server side fix of the following issue is merged:
# https://jira-hq.paloaltonetworks.local/browse/CRTX-77146
if version := get_demisto_version().get('version'):
if version == '8.1.0':
return 'xsoartim'

platform = get_demisto_version().get('platform')
platform = get_demisto_version().get('platform') # Platform = xsoar_hosted / xsoar / x2 depends on the machine
return 'xdr' if platform == 'x2' else 'xsoartim'

def get_file_report(self, file_hash: str):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ script:
script: '-'
type: python
subtype: python3
dockerimage: demisto/python3:3.10.12.63474
dockerimage: demisto/python3:3.10.12.68714
fromversion: 6.5.0
tests:
- No tests (auto formatted)
7 changes: 7 additions & 0 deletions Packs/Palo_Alto_Networks_WildFire/ReleaseNotes/2_1_33.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

#### Integrations

##### Palo Alto Networks WildFire Reports

- Updated the way we distinguish between running on *XSOAR* or *XSIAM* machines.
- Updated the Docker image to: *demisto/python3:3.10.12.68714*.
2 changes: 1 addition & 1 deletion Packs/Palo_Alto_Networks_WildFire/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "WildFire by Palo Alto Networks",
"description": "Perform malware dynamic analysis",
"support": "xsoar",
"currentVersion": "2.1.32",
"currentVersion": "2.1.33",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit 20442d7

Please sign in to comment.