From 46473e9c836018c967bdc350a9e5f093dea3d872 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: May 02 2023 19:56:30 +0000 Subject: Update phase lookup Signed-off-by: Troy Dawson --- diff --git a/src/centpkg/utils.py b/src/centpkg/utils.py index b42b2ea..e17d0d3 100644 --- a/src/centpkg/utils.py +++ b/src/centpkg/utils.py @@ -412,12 +412,15 @@ def determine_active_y_version(rhel_version, pp_api_url): # Now look up whether we are in the Exception Phase for this Y-stream release request_params = { - "name__regex": "Exception Phase", + "name__regex": "(Excep|Stabiliza)tion Phase", "format": "json", } res = requests.get(os.path.join(pp_api_url, "latest", "releases", str(release_id), "schedule-tasks"), params=request_params) res.raise_for_status() payload = json.loads(res.text) + logger.debug( + "Response from phase lookup: {}".format(json.dumps(payload, indent=2)) + ) # This lookup *must* return exactly one value or the Product Pages are # wrong and must be fixed.