From 41a1a587ad0ce8dc4257b2ac4c50b5b18d8bdb69 Mon Sep 17 00:00:00 2001 From: Bas Zoetekouw Date: Wed, 6 Dec 2023 13:10:11 +0100 Subject: [PATCH] Use sbs_url from upostream sbs --- sbs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbs.py b/sbs.py index 86ff71c..e6fea39 100644 --- a/sbs.py +++ b/sbs.py @@ -216,7 +216,8 @@ def service_collaborations(self): for s in (o.get('services', []) + c.get('services', [])): result[services[s]['ldap_identifier']]['cos'][c['id']] = c - c['sbs_url'] = "{}/collaborations/{}".format(self.host, c['identifier']) + if not 'sbs_url' in c: + raise SyntaxError(f"Missing sbs_url in CO '{c['id']}'") return result