Update 'zuul.yaml'

Reviewed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
This commit is contained in:
2023-01-02 18:56:58 +00:00
committed by zuul
parent e0dc83ddc4
commit ba65aca9eb
20 changed files with 240 additions and 310 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 (