Update phase lookup

Signed-off-by: Troy Dawson <tdawson@redhat.com>
This commit is contained in:
Troy Dawson 2023-05-02 12:56:30 -07:00
parent fe493e3aab
commit 46473e9c83

View file

@ -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.