Compare commits
1 Commits
lts
...
increase-o
Author | SHA1 | Date | |
---|---|---|---|
e32c8e2df4 |
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
environment: internal
|
|
||||||
hc_location: api/lts
|
|
||||||
html_location: docs/lts/api-ref
|
|
||||||
link: /log-tank-service/api-ref/
|
|
||||||
pdf_name: lts-api-ref
|
|
||||||
rst_location: api-ref/source
|
|
||||||
service_type: lts
|
|
||||||
title: API Reference
|
|
||||||
type: api-ref
|
|
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
environment: internal
|
|
||||||
hc_location: usermanual/lts
|
|
||||||
html_location: docs/lts/umn
|
|
||||||
link: /log-tank-service/umn/
|
|
||||||
pdf_name: lts-umn
|
|
||||||
rst_location: umn/source
|
|
||||||
service_type: lts
|
|
||||||
title: User Guide
|
|
||||||
type: umn
|
|
@ -1,16 +0,0 @@
|
|||||||
---
|
|
||||||
environment: internal
|
|
||||||
repositories:
|
|
||||||
- environment: internal
|
|
||||||
repo: docs-swiss/log-tank-service
|
|
||||||
type: gitea
|
|
||||||
- environment: public
|
|
||||||
repo: opentelekomcloud-docs-swiss/log-tank-service
|
|
||||||
type: github
|
|
||||||
service_category: md
|
|
||||||
service_title: Log Tank Service
|
|
||||||
service_type: lts
|
|
||||||
service_uri: log-tank-service
|
|
||||||
teams:
|
|
||||||
- name: docs-orchestration-rw
|
|
||||||
permission: write
|
|
@ -87,13 +87,10 @@ class Services(object):
|
|||||||
res.append(copy.deepcopy(cat))
|
res.append(copy.deepcopy(cat))
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def services_by_category(self, category, environment=None):
|
def services_by_category(self, category):
|
||||||
"""List services matching category"""
|
"""List services matching category"""
|
||||||
res = []
|
res = []
|
||||||
for srv in self.all_services:
|
for srv in self.all_services:
|
||||||
if environment:
|
|
||||||
if "environment" in srv and srv["environment"] != environment:
|
|
||||||
continue
|
|
||||||
if srv["service_category"] == category:
|
if srv["service_category"] == category:
|
||||||
res.append(copy.deepcopy(srv))
|
res.append(copy.deepcopy(srv))
|
||||||
return res
|
return res
|
||||||
|
Reference in New Issue
Block a user