fix public only service left out in metadata.yaml

Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
This commit is contained in:
Tino Schreiber 2024-03-08 09:57:11 +00:00 committed by zuul
parent c7558639bb
commit 842a30fe3d

View File

@ -246,12 +246,19 @@ class Services(object):
x for x in srv["teams"] if x["permission"] == "write"
]
if "repositories" in srv and environment:
internal_exists = False
for repo in srv["repositories"]:
if (
"environment" in repo
and repo["environment"] == environment
):
srv_res["repository"] = repo["repo"]
if repo["environment"] == "internal":
internal_exists = True
# internal repo does not exist
# service will be left out from metadata.yaml
if not internal_exists:
continue
for doc in self.all_docs:
if (
"html_location" in doc