Skip to content

Commit

Permalink
fixed enrich_techniques_data_sources function to not remote data sour…
Browse files Browse the repository at this point in the history
…ces metadata.Fixes #45
  • Loading branch information
Cyb3rWard0g committed Jan 20, 2022
1 parent 5ec1292 commit 638e354
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions attackcti/attack_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,7 @@ def enrich_techniques_data_sources(self, stix_object):
technique_ds[dc_ds_ref]['data_components'] = list()
if dc not in technique_ds[dc_ds_ref]['data_components']:
technique_ds[dc_ds_ref]['data_components'].append(dc)
new_data_sources = [ v for v in technique_ds.values()]
stix_object[i] = stix_object[i].new_version(x_mitre_data_sources = new_data_sources)
return stix_object
if technique_ds:
new_data_sources = [ v for v in technique_ds.values()]
stix_object[i] = stix_object[i].new_version(x_mitre_data_sources = new_data_sources)
return stix_object

0 comments on commit 638e354

Please sign in to comment.