From 147df93f755355834a388f88cc599b49c0a04ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 23 Nov 2022 10:29:25 +0100 Subject: [PATCH] Stop sending compose paths to CTS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The tracking service will reject it as it's not an HTTP URL. Let's not even try. Signed-off-by: Lubomír Sedlář --- pungi/compose.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pungi/compose.py b/pungi/compose.py index dcc3b4d6..060eb96a 100644 --- a/pungi/compose.py +++ b/pungi/compose.py @@ -174,6 +174,9 @@ def update_compose_url(compose_id, compose_dir, conf): url = os.path.join(cts_url, "api/1/composes", compose_id) tp = conf.get("translate_paths", None) compose_url = translate_path_raw(tp, compose_dir) + if compose_url == compose_dir: + # We do not have a URL, do not attempt the update. + return data = { "action": "set_url", "compose_url": compose_url,