oasis-open / cti-stix-slider

OASIS TC Open Repository: The repository cti-stix-slider supports development of a Python application to convert STIX 2.0 content to STIX 1.x content
https://cti-stix-slider.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
21 stars 15 forks source link

Fix convert_tool to use fix #310 from python_cybox #39

Closed rpiazza closed 4 years ago

rpiazza commented 5 years ago
  if "labels" in tool2x:
        warn("labels not representable in a STIX 1.x ToolInformation.  Found in %s", 502, tool2x["id"])
        # bug in python_stix prevents using next line of code
        # tool1x.type_ = convert_open_vocabs_to_controlled_vocabs(tool2x["labels"], TOOL_LABELS_MAP)