#73 Update phase lookup
Merged 2 years ago by tdawson. Opened 2 years ago by tdawson.
centos/ tdawson/centpkg fix-regex  into  develop

file modified
+4 -1
@@ -412,12 +412,15 @@ 

  

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

Pull-Request has been merged by tdawson

2 years ago
Metadata