diff --git a/osv/ecosystems/_ecosystems.py b/osv/ecosystems/_ecosystems.py index 1bc16bba3cc..fa568baa778 100644 --- a/osv/ecosystems/_ecosystems.py +++ b/osv/ecosystems/_ecosystems.py @@ -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. @@ -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):