Compare commits

..

1 Commits

Author SHA1 Message Date
811637bff8 fix zuul.yaml.j2 template
All checks were successful
gl/check check status: success (811637bff80bf3a45cc430ee9b482d0ed1b9d527)
gl/gate gate status: success (811637bff80bf3a45cc430ee9b482d0ed1b9d527)
2024-01-18 13:01:28 +00:00
2 changed files with 2 additions and 5 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 %}