Skip to content

Commit

Permalink
fix(ecosystems): treat Red Hat as supported
Browse files Browse the repository at this point in the history
Correct a typo and also a thinko with normalizing fall-through ecosystem names
  • Loading branch information
andrewpollock committed Sep 24, 2024
1 parent 4eadc85 commit b03a5de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osv/ecosystems/_ecosystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
'Linux': OrderingUnsupportedEcosystem(),
'OSS-Fuzz': OrderingUnsupportedEcosystem(),
'Photon OS': OrderingUnsupportedEcosystem(),
'Red Hat': OrderingUnsupportedEcosystem,
'Red Hat': OrderingUnsupportedEcosystem(),
}

# Semver-based ecosystems, should correspond to _ecosystems above.
Expand Down Expand Up @@ -134,7 +134,7 @@ def get(name: str) -> Ecosystem:
if name.startswith('SUSE'):
return SUSE()

return _ecosystems.get(name)
return _ecosystems.get(normalize(name))


def normalize(ecosystem_name: str):
Expand Down

0 comments on commit b03a5de

Please sign in to comment.