New service function #36

Merged
tischrei merged 3 commits from services into main 2025-08-04 09:36:24 +00:00
Showing only changes of commit ca7b7e3712 - Show all commits

View File

@ -468,10 +468,9 @@ class Services(object):
else:
continue
else:
raise Exception("No cloud_environment or environments " \
raise Exception("No cloud_environment or environments "
"specified in function all_services_by_cloud_environment.")
# Sort services
res.sort(key=lambda x: x.get("service_title", "").lower())

View File

@ -1,5 +0,0 @@
import otc_metadata
import json
print(json.dumps(otc_metadata.services.Services().all_services_by_cloud_environment(cloud_environment="eu_de",environments=["public","internal","hidden"])))