applications: skip unknown (lateral) services (#68783)
gitea-wip/hobo/pipeline/head There was a failure building this commit Details
gitea/hobo/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Frédéric Péters 2022-09-06 18:14:21 +02:00
parent 128c9fa79e
commit 268bd3b624
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ def get_object_types():
continue
service_objects = {x.get_base_url_path(): x for x in get_installed_services(types=[service_id])}
for service in services.values():
if service['url'] not in service_objects:
continue
if service_objects[service['url']].secondary:
continue
url = urllib.parse.urljoin(service['url'], 'api/export-import/')