Skip to content

Commit

Permalink
fix: [stix2 import] Passing the cluster distribution value to galaxy …
Browse files Browse the repository at this point in the history
…definitions too
  • Loading branch information
chrisr3d committed Mar 4, 2025
1 parent 70af6e8 commit bb5f14e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misp_stix_converter/stix2misp/converters/stix2converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ def _create_galaxy_args(self, stix_object: _GALAXY_OBJECTS_TYPING,
mapping = self._mapping.galaxy_name_mapping(galaxy_type)
name = mapping['name']
galaxy_args = {
'description': mapping['description'], 'namespace': 'stix'
'description': mapping['description'], 'namespace': 'stix',
**self.main_parser.cluster_distribution
}
if galaxy_type not in ('country', 'region', 'sector'):
version = getattr(stix_object, 'spec_version', '2.0')
Expand Down

0 comments on commit bb5f14e

Please sign in to comment.