Skip to content

Commit f62b2ab

Browse files
fgravatoampcode-com
andcommitted
Fix validation script: check for LookoutAPI connector ID and add execute permissions
Amp-Thread-ID: https://ampcode.com/threads/T-56c53083-3a23-4232-81ab-3ca955e9cf79 Co-authored-by: Amp <[email protected]>
1 parent d337caa commit f62b2ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Solutions/Lookout/validate_fixes.py

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def validate_rule(yaml_file):
5050
if 'requiredDataConnectors' in rule:
5151
for connector in rule['requiredDataConnectors']:
5252
conn_id = connector.get('connectorId')
53-
if 'V2' in rule_name and conn_id != 'Lookout-Mobile-Threat-Defense':
54-
errors.append(f"V2 rule should use 'Lookout-Mobile-Threat-Defense', found '{conn_id}'")
53+
if 'V2' in rule_name and conn_id != 'LookoutAPI':
54+
errors.append(f"V2 rule should use 'LookoutAPI', found '{conn_id}'")
5555

5656
# Check if connector ID is in valid list
5757
valid_ids = load_valid_connector_ids()

0 commit comments

Comments
 (0)