Skip to content

Commit 05e406e

Browse files
committed
Fix Excel output for datasources/components to display correctly
1 parent 3b843bb commit 05e406e

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v1.5.3 4/15/2022
2+
3+
## Fixes
4+
5+
- Fix Excel output for datasources/components to display correctly
6+
17
# v1.5.2 4/13/2022
28

39
## Fixes

mitreattack/attackToExcel/stixToDf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def sourcesToDf(src, domain):
258258
if "x_mitre_aliases" in data_object:
259259
row["aliases"] = ", ".join(sorted(data_object["x_mitre_aliases"][1:]))
260260
if data_object["type"] == "x-mitre-data-component":
261-
row["name"] = f"{data_object['name']}: {source_lookup[data_object['x_mitre_data_source_ref']]}"
261+
row["name"] = f"{source_lookup[data_object['x_mitre_data_source_ref']]}: {data_object['name']}"
262262
row["type"] = "datacomponent"
263263
else:
264264
row["type"] = "datasource"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="mitreattack-python",
8-
version="1.5.2",
8+
version="1.5.3",
99
author="MITRE ATT&CK, MITRE Corporation",
1010
author_email="attack@mitre.org",
1111
description="MITRE ATT&CK python library",

0 commit comments

Comments
 (0)