From cadb28eb6517c0ada15ada77714f2bc77d1aed29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dylan=20A=C3=AFssi?= <dylan.aissi@collabora.com> Date: Thu, 17 Oct 2024 12:22:49 +0200 Subject: [PATCH] apertis-pkg-merge-upstream-to-downstreams: Don't print useless information while canceling pipelines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Printing these values only creates noise in the log. Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com> --- tools/apertis-pkg-merge-upstream-to-downstreams | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/apertis-pkg-merge-upstream-to-downstreams b/tools/apertis-pkg-merge-upstream-to-downstreams index aca0aea..d265bed 100755 --- a/tools/apertis-pkg-merge-upstream-to-downstreams +++ b/tools/apertis-pkg-merge-upstream-to-downstreams @@ -117,7 +117,6 @@ def cancel_branch_context_pipeline(project_id, branch, token, project_url): try: res = urllib.request.urlopen(get_id_req) json_res = json.load(res) - print(json_res) latest_job_id = json_res["id"] except urllib.error.HTTPError as e: print("ERROR:", e.read().decode()) @@ -136,7 +135,6 @@ def cancel_branch_context_pipeline(project_id, branch, token, project_url): print(f"Canceling useless pipeline on {branch}") try: res = urllib.request.urlopen(cancel_req).read().decode("utf-8") - print(res) except urllib.error.HTTPError as e: print("ERROR:", e.read().decode()) -- GitLab