Skip to content

Commit b65a1cc

Browse files
authored
[McAfeeNSMv2] MyPy In Docker (#37995)
* fix * fix * RN * E501 Line too long * autopep8
1 parent ef705a3 commit b65a1cc

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

Packs/McAfeeNSM/Integrations/McAfeeNSMv2/McAfeeNSMv2.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,9 +1323,20 @@ def update_firewall_policy_command(client: Client, args: dict) -> CommandResults
13231323
destination_object = update_source_destination_object(destination_object, destination_rule_object_id,
13241324
destination_rule_object_type)
13251325

1326-
body = create_body_firewall_policy(domain, name, visible_to_child, description, is_editable, policy_type,
1327-
rule_description, response_param, rule_enabled, direction, source_object,
1328-
destination_object)
1326+
body = create_body_firewall_policy(
1327+
domain, # type: ignore[arg-type]
1328+
name, # type: ignore[arg-type]
1329+
visible_to_child, # type: ignore[arg-type]
1330+
description, # type: ignore[arg-type]
1331+
is_editable, # type: ignore[arg-type]
1332+
policy_type, # type: ignore[arg-type]
1333+
rule_description,
1334+
response_param,
1335+
rule_enabled,
1336+
direction,
1337+
source_object,
1338+
destination_object
1339+
)
13291340

13301341
client.update_firewall_policy_request(body, policy_id)
13311342
return CommandResults(readable_output=f'The firewall policy no.{policy_id} was updated successfully')
@@ -1463,7 +1474,7 @@ def create_rule_object_command(client: Client, args: dict) -> CommandResults:
14631474
from_address = from_address_ip_v_4 if from_address_ip_v_4 else from_address_ip_v_6
14641475
to_address = to_address_ip_v_4 if to_address_ip_v_4 else to_address_ip_v_6
14651476

1466-
check_args_create_rule(rule_type, address, from_address, to_address, number)
1477+
check_args_create_rule(rule_type, address, from_address, to_address, number) # type: ignore[arg-type]
14671478

14681479
body = {
14691480
'RuleObjDef': {

Packs/McAfeeNSM/Integrations/McAfeeNSMv2/McAfeeNSMv2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,7 @@ script:
20452045
script: '-'
20462046
type: python
20472047
subtype: python3
2048-
dockerimage: demisto/python3:3.11.10.115186
2048+
dockerimage: demisto/python3:3.11.11.1940698
20492049
fromversion: 6.5.0
20502050
tests:
20512051
- Test_McAfeeNSMv2_using_v9
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Integrations
3+
4+
##### McAfee NSM v2
5+
6+
Updated the Docker image to: *demisto/python3:3.11.11.1940698*.

Packs/McAfeeNSM/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "McAfee NSM",
33
"description": "McAfee Network Security Manager",
44
"support": "xsoar",
5-
"currentVersion": "1.2.19",
5+
"currentVersion": "1.2.20",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

0 commit comments

Comments
 (0)