Skip to content

Commit

Permalink
fix: typo in organization
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyharrison committed Aug 29, 2024
1 parent 69ebb32 commit 5a06007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib4sbom/cyclonedx/cyclonedx_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def _cyclondex_component(self, d):
if "email" in contact:
supplier_name = f'{supplier_name} ({contact["email"]})'
if len(supplier_name) > 0:
self.cyclonedx_package.set_supplier("Organisation", supplier_name)
self.cyclonedx_package.set_supplier("Organization", supplier_name)
if "author" in d:
# Assume that this refers to an individual
self.cyclonedx_package.set_originator("Person", d["author"])
Expand Down Expand Up @@ -756,7 +756,7 @@ def _parse_component_xml(self, component):
# contact_name = self._xml_component(element, "name")
supplier_name = f"{supplier_name} ({email})"
break
self.cyclonedx_package.set_supplier("Organisation", supplier_name)
self.cyclonedx_package.set_supplier("Organization", supplier_name)
author = self._xml_component(component, "author")
if author != "":
# Assume that this refers to an individual
Expand Down

0 comments on commit 5a06007

Please sign in to comment.