From b03a5de5d4b6d9cc643e69bd4e288f140ffea5ea Mon Sep 17 00:00:00 2001 From: Andrew Pollock Date: Tue, 24 Sep 2024 08:22:21 +0000 Subject: [PATCH] fix(ecosystems): treat Red Hat as supported Correct a typo and also a thinko with normalizing fall-through ecosystem names --- osv/ecosystems/_ecosystems.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):