Various fixes to run test jobs
All checks were successful
gl/check check status: success (b20afcb98236be571567e1f269b2e973465dc0ed)
gl/gate gate status: success (b20afcb98236be571567e1f269b2e973465dc0ed)

This commit is contained in:
2023-01-02 19:47:45 +01:00
parent ee6771730e
commit b20afcb982
19 changed files with 238 additions and 300 deletions

View File

@ -40,7 +40,8 @@ class Services(object):
# sort docs list by <service_type>_<title>
self._service_data["documents"] = sorted(
sorted_docs, key=lambda x: f"{x.get('service_type')}{x.get('title')}"
sorted_docs,
key=lambda x: f"{x.get('service_type')}{x.get('title')}"
)
# sort services by <service_type>_<service_title>
self._service_data["services"] = sorted(
@ -183,7 +184,10 @@ class Services(object):
]
if "repositories" in srv and environment:
for repo in srv["repositories"]:
if "environment" in repo and repo["environment"] == environment:
if (
"environment" in repo
and repo["environment"] == environment
):
srv_res["repository"] = repo["repo"]
for doc in self.all_docs:
if (