From 69af0a6a65d1863f98a82ef5a81b14b365ae32dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 15 Mar 2017 16:17:38 +0100 Subject: [PATCH] ostree-installer: Print task ID on success MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Relates: #570 Signed-off-by: Lubomír Sedlář --- pungi/phases/ostree_installer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pungi/phases/ostree_installer.py b/pungi/phases/ostree_installer.py index b2bf9cb9..0008a1d9 100644 --- a/pungi/phases/ostree_installer.py +++ b/pungi/phases/ostree_installer.py @@ -58,12 +58,12 @@ class OstreeInstallerThread(WorkerThread): disc_type = compose.conf['disc_types'].get('ostree', 'ostree') volid = get_volid(compose, arch, variant, disc_type=disc_type) - self._run_ostree_cmd(compose, variant, arch, config, source_repos, output_dir, volid) + task_id = self._run_ostree_cmd(compose, variant, arch, config, source_repos, output_dir, volid) filename = compose.get_image_name(arch, variant, disc_type=disc_type) self._copy_image(compose, variant, arch, filename, output_dir) self._add_to_manifest(compose, variant, arch, filename) - self.pool.log_info('[DONE ] %s' % msg) + self.pool.log_info('[DONE ] %s, (task id: %s)' % (msg, task_id)) def _get_source_repo(self, compose, arch, source): """ @@ -176,3 +176,4 @@ class OstreeInstallerThread(WorkerThread): if output["retcode"] != 0: raise RuntimeError("Runroot task failed: %s. See %s for more details." % (output["task_id"], log_file)) + return output['task_id']