From abcc51fb852b274921081f7bbf33e89971ccab57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Fri, 12 Feb 2016 12:39:50 +0100 Subject: [PATCH] [buildinstall] Stop parsing task_id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit KojiWrapper returns the task id as an integer already (if at all). There is no need to parse it again. Pagure: #148 Signed-off-by: Lubomír Sedlář --- pungi/phases/buildinstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pungi/phases/buildinstall.py b/pungi/phases/buildinstall.py index 70021989..c06be91a 100644 --- a/pungi/phases/buildinstall.py +++ b/pungi/phases/buildinstall.py @@ -416,10 +416,10 @@ class BuildinstallThread(WorkerThread): time.sleep(num * 3) output = koji_wrapper.run_runroot_cmd(koji_cmd, log_file=log_file) - task_id = int(output["task_id"]) if output["retcode"] != 0: raise RuntimeError("Runroot task failed: %s. See %s for more details." % (output["task_id"], log_file)) + task_id = output["task_id"] else: # run locally