Compare commits

..

1 Commits

Author SHA1 Message Date
8a512d56d8 Update zuul.yaml.j2
All checks were successful
gl/check check status: success (8a512d56d85ac11ab895181d045fa3955b093ea0)
gl/gate gate status: success (8a512d56d85ac11ab895181d045fa3955b093ea0)
2024-01-18 08:52:19 +00:00
3 changed files with 3 additions and 6 deletions

View File

@ -87,13 +87,10 @@ class Services(object):
res.append(copy.deepcopy(cat))
return res
def services_by_category(self, category, environment=None):
def services_by_category(self, category):
"""List services matching category"""
res = []
for srv in self.all_services:
if environment:
if "environment" in srv and srv["environment"] != environment:
continue
if srv["service_category"] == category:
res.append(copy.deepcopy(srv))
return res

View File

@ -1,6 +1,6 @@
sphinx>=2.0.0,!=2.1.0 # BSD
{% if target_environment == 'public' %}
otcdocstheme<2.0.0 # Apache-2.0
otcdocstheme<1.0.0 # Apache-2.0
{% elif target_environment == 'internal' %}
otcdocstheme # Apache-2.0
{% else %}

View File

@ -3,7 +3,7 @@
merge-mode: squash-merge
default-branch: main
templates:
- helpcenter-swiss-base-jobs
- helpcenter-base-jobs
check:
jobs:
- noop