Skip to content

Commit

Permalink
fix: [stix2 import] Using the AS value parsing method for an AS value…
Browse files Browse the repository at this point in the history
… that was missing it
  • Loading branch information
chrisr3d committed Feb 16, 2024
1 parent ebd7f86 commit 30a63e3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,8 @@ def _parse_asn_observable(
observed_data_id: Optional[str] = None) -> Iterator:
object_id = getattr(observable, 'id', observed_data_id)
yield from self._populate_object_attributes(
self._mapping.asn_attribute(), f'AS{observable.number}', object_id
self._mapping.asn_attribute(),
self._parse_AS_value(observable.number), object_id
)
if hasattr(observable, 'name'):
yield from self._populate_object_attributes(
Expand Down

0 comments on commit 30a63e3

Please sign in to comment.