Skip to content

Commit bad4597

Browse files
committed
fix: remove warnings for data component with no parent
1 parent ba5cf3d commit bad4597

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

mitreattack/diffStix/changelog_helper.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,16 +1731,12 @@ def write_detailed_html(html_file_detailed: str, diffStix: DiffStix):
17311731
if parent_object:
17321732
nameplate = f"{parent_object.get('name')}: {stix_object['name']}"
17331733
else:
1734-
logger.warning(f"[{stix_object['id']}] {attack_id} has no parent!")
1735-
nameplate = f"{stix_object['name']} (No parent object identified. It is likely revoked or deprecated)"
1734+
nameplate = f"{stix_object['name']}"
17361735
else:
17371736
nameplate = stix_object["name"]
17381737

17391738
if attack_id:
17401739
nameplate = f"[{attack_id}] {nameplate}"
1741-
else:
1742-
if stix_object["type"] != "x-mitre-data-component":
1743-
logger.warning(f"{stix_object['id']} does not have an ATT&CK ID")
17441740

17451741
lines.append("<hr>")
17461742
lines.append(f"<h4>{nameplate}</h4>")

0 commit comments

Comments
 (0)