fix public only service left out in metadata.yaml
All checks were successful
gl/check check status: success (4da0f8897858706bb261531c457c9e33012fd011)
All checks were successful
gl/check check status: success (4da0f8897858706bb261531c457c9e33012fd011)
This commit is contained in:
parent
c7558639bb
commit
4da0f88978
@ -246,12 +246,19 @@ class Services(object):
|
|||||||
x for x in srv["teams"] if x["permission"] == "write"
|
x for x in srv["teams"] if x["permission"] == "write"
|
||||||
]
|
]
|
||||||
if "repositories" in srv and environment:
|
if "repositories" in srv and environment:
|
||||||
|
internal_exists = False
|
||||||
for repo in srv["repositories"]:
|
for repo in srv["repositories"]:
|
||||||
if (
|
if (
|
||||||
"environment" in repo
|
"environment" in repo
|
||||||
and repo["environment"] == environment
|
and repo["environment"] == environment
|
||||||
):
|
):
|
||||||
srv_res["repository"] = repo["repo"]
|
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:
|
for doc in self.all_docs:
|
||||||
if (
|
if (
|
||||||
"html_location" in doc
|
"html_location" in doc
|
||||||
@ -292,3 +299,7 @@ class Services(object):
|
|||||||
res["service"] = service
|
res["service"] = service
|
||||||
break
|
break
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
|
srv = Services()
|
||||||
|
srv.docs_html_by_category("internal")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user