Skip to content

Commit

Permalink
fix(ecosystems): treat Red Hat as supported (#2650)
Browse files Browse the repository at this point in the history
Correct a typo and also a thinko with normalizing fall-through ecosystem
names

We'll need to reimport the Red Hat source in Staging once this change is
live there.
  • Loading branch information
andrewpollock authored Sep 24, 2024
1 parent 16f3dfa commit d4aed31
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 d4aed31

Please sign in to comment.