Stop sending compose paths to CTS

The tracking service will reject it as it's not an HTTP URL. Let's not
even try.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
(cherry picked from commit 147df93f75)
This commit is contained in:
Lubomír Sedlář 2022-11-23 10:29:25 +01:00 committed by soksanichenko
parent d17e578645
commit 02b3adbaeb

View File

@ -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,