mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 08:12:55 +00:00
Update phase lookup
Signed-off-by: Troy Dawson <tdawson@redhat.com>
This commit is contained in:
parent
fe493e3aab
commit
46473e9c83
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue