Skip to content

Commit 43d383a

Browse files
committed
Removed unnecessary comments and added a brief description instead.
1 parent 80fbc90 commit 43d383a

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

dojo/tools/prowler/parser.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,7 @@ class ProwlerParser:
1212

1313
"""
1414
A parser for Prowler scan results.
15-
Supports both CSV and OCSF JSON for # Construct title
16-
if original_check_id and check_title:
17-
title = f"{original_check_id}: {check_title}"
18-
elif original_check_id:
19-
title = original_check_id
20-
elif check_title:
21-
title = check_title
22-
else:
23-
title = "Prowler Finding"AWS, Azure, GCP, and Kubernetes.
15+
Supports both CSV and OCSF JSON for AWS, Azure, GCP, and Kubernetes.
2416
"""
2517

2618
def get_scan_types(self):
@@ -109,9 +101,6 @@ def _parse_json_findings(self, data, test, *, file_name=""):
109101
if not isinstance(item, dict):
110102
logger.debug(f"Skipping Prowler finding because it's not a dict: {item}")
111103
continue
112-
if "message" not in item:
113-
logger.debug(f"Skipping Prowler finding because it's missing 'message' field: {item}")
114-
continue
115104

116105
# Get basic information
117106
title = item.get("message", "No title provided")

0 commit comments

Comments
 (0)