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 Pylint errors in E packs #38053

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,9 @@ def get_entity_realtionships(self, source_id=None, target_id=None):
elif target_id:
params["filter[data.target]"] = target_id
direction = "target"
else:
direction = ""
demisto.debug(f"No source_id or target_id. {direction=}")

r = self.send_api_request(
"get", path=API_PATHS[self.eiq_api_version]["relationships"], params=params
Expand Down Expand Up @@ -1725,6 +1728,9 @@ def parse_reputation_results(
),
)
prefix = "EclecticIQ.Email"
else:
prefix = ""
demisto.debug(f"{demisto_observable_type=} -> {prefix=}")

raw_result = response_eiq

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ script:
- arguments: []
name: eclecticiq-get-indicators
description: Get last block of Indicators from configured to fetch Outgoing feed.
dockerimage: demisto/python3:3.11.10.115186
dockerimage: demisto/python3:3.11.10.116949
feed: true
isFetchSamples: true
runonce: false
Expand Down
5 changes: 5 additions & 0 deletions Packs/EclecticIQ/ReleaseNotes/3_0_6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#### Integrations

##### EclecticIQ Intelligence Center v3
- Code functionality improvements.
- Updated the Docker image to: *demisto/python3:3.11.10.116949*.
2 changes: 1 addition & 1 deletion Packs/EclecticIQ/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "EclecticIQ Platform",
"description": "Threat Intelligence Platform that connects and interprets intelligence data from open sources, commercial suppliers and industry partnerships.",
"support": "partner",
"currentVersion": "3.0.5",
"currentVersion": "3.0.6",
"author": "EclecticIQ",
"url": "https://support.eclecticiq.com",
"email": "[email protected]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def timestamp_to_date(timestamp_string):
timestamp_number = float(int(timestamp_string) / 1000)

# find timestamp in form of seconds since epoch: 1572164838
elif TIME_METHOD == 'Timestamp-Seconds':
else: # TIME_METHOD == 'Timestamp-Seconds':
demisto.debug(f"{TIME_METHOD=}. Should be Timestamp-Seconds.")
timestamp_number = float(timestamp_string)

# convert timestamp (a floating point number representing time since epoch) to datetime
Expand Down
4 changes: 4 additions & 0 deletions Packs/Elasticsearch/ReleaseNotes/1_3_27.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#### Integrations

##### Elasticsearch v2
- Code functionality improvements.
2 changes: 1 addition & 1 deletion Packs/Elasticsearch/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Elasticsearch",
"description": "Search for and analyze data in real time. \n Supports version 6 and later.",
"support": "xsoar",
"currentVersion": "1.3.26",
"currentVersion": "1.3.27",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
3 changes: 3 additions & 0 deletions Packs/EmailCommunication/ReleaseNotes/2_0_37.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#### Scripts
##### SendEmailReply
Code functionality improvements.
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,12 @@ def multi_thread_reply(new_email_body, body_type, incident_id, email_selected_th
return_error('The \'New Email Body\' field has not been set. Please set it and try again')

try:
reply_recipients = ""
reply_mailbox = ""
reply_to_message_id = ""
thread_cc = ""
thread_bcc = ""
reply_code = ""
incident_email_threads = get_email_threads(incident_id)
if not incident_email_threads:
return_error('Failed to retrieve email thread entries - reply not sent!')
Expand Down
2 changes: 1 addition & 1 deletion Packs/EmailCommunication/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Email Communication",
"description": "Do you have to send multiple emails to end users? This content pack helps you streamline the process and automate updates, notifications and more.\n",
"support": "xsoar",
"currentVersion": "2.0.36",
"currentVersion": "2.0.37",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"videos": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ def calculate_page_parameters(args: dict) -> tuple[int, int]:
raise DemistoException("Both 'page' and 'page_size' must be greater than 0.")
from_param = page * page_size - page_size
size_param = page_size
else:
from_param = 0
size_param = 0
demisto.debug(f"{from_param=} {size_param=}")
else:
from_param = 0
size_param = get_limit(args, "limit")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ script:
script: '-'
type: python
subtype: python3
dockerimage: demisto/python3:3.11.10.115186
dockerimage: demisto/python3:3.11.10.116949
fromversion: 6.10.0
tests:
- ExabeamDataLake-test
5 changes: 5 additions & 0 deletions Packs/ExabeamDataLake/ReleaseNotes/1_0_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#### Integrations

##### Exabeam Data Lake
- Code functionality improvements.
- Updated the Docker image to: *demisto/python3:3.11.10.116949*.
2 changes: 1 addition & 1 deletion Packs/ExabeamDataLake/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ExabeamDataLake",
"description": "Exabeam Data Lake provides a highly scalable, cost-effective, and searchable log management system. Data Lake is used for log collection, storage, processing, and presentation.",
"support": "xsoar",
"currentVersion": "1.0.1",
"currentVersion": "1.0.2",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,9 @@ def generic_search_command(client: Client, args: dict, item_type: str) -> Comman
response = client.case_search_request(kwargs)
elif item_type == "alert":
response = client.alert_search_request(kwargs)
else:
response = {}
demisto.debug(f"{item_type=} -> {response=}")
data_response = response.get("rows", [])
table_name = f"{item_type.capitalize()}s"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ script:
script: '-'
type: python
subtype: python3
dockerimage: demisto/python3:3.11.10.115186
dockerimage: demisto/python3:3.11.10.116949
isfetch: true
fromversion: 6.10.0
tests:
Expand Down
5 changes: 5 additions & 0 deletions Packs/ExabeamSecurityOperationsPlatform/ReleaseNotes/1_1_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#### Integrations

##### Exabeam Security Operations Platform
- Code functionality improvements.
- Updated the Docker image to: *demisto/python3:3.11.10.116949*.
2 changes: 1 addition & 1 deletion Packs/ExabeamSecurityOperationsPlatform/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Exabeam Security Operations Platform",
"description": " Exabeam Security Operations Platform ",
"support": "xsoar",
"currentVersion": "1.1.1",
"currentVersion": "1.1.2",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Loading