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>
This commit is contained in:
Lubomír Sedlář 2022-11-23 10:29:25 +01:00
parent dd8c1002d4
commit 147df93f75
1 changed files with 3 additions and 0 deletions

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,