diff --git a/packaging_automation/citus_package.py b/packaging_automation/citus_package.py index 5e5751fc..d19d4407 100644 --- a/packaging_automation/citus_package.py +++ b/packaging_automation/citus_package.py @@ -329,7 +329,7 @@ def get_postgres_versions( if exclude_dict_nightly and platform_key_nightly in exclude_dict_nightly: nightly_versions = [ v - for v in release_versions + for v in nightly_versions if v not in exclude_dict_nightly[platform_key_nightly] ] diff --git a/packaging_automation/tests/test_citus_package.py b/packaging_automation/tests/test_citus_package.py index f5e0f196..fd776814 100644 --- a/packaging_automation/tests/test_citus_package.py +++ b/packaging_automation/tests/test_citus_package.py @@ -223,7 +223,7 @@ def test_get_postgres_versions_ol_7(): ) # pg 15 is excluded for all releases with pg_exclude file assert len(release_versions) == 2 and release_versions == ["13", "14"] - assert len(nightly_versions) == 2 and nightly_versions == ["13", "14"] + assert len(nightly_versions) == 1 and nightly_versions == ["14"] def test_get_postgres_versions_el_7():