From 68f5c38e6161d2cb20ea4e28d72c334e75470c5a Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 10 Feb 2021 14:53:23 +0000 Subject: [PATCH] main: print all pipeline names and ids Instead of printing the tree_id and output_id, which are format dependent, print all pipelines, with their name and ids. --- osbuild/main_cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/osbuild/main_cli.py b/osbuild/main_cli.py index 5cc67741..dd1b8bad 100644 --- a/osbuild/main_cli.py +++ b/osbuild/main_cli.py @@ -139,9 +139,8 @@ def osbuild_cli(): sys.stdout.write("\n") else: if r["success"]: - tree_id, output_id = fmt.get_ids(manifest) - print("tree id:", tree_id) - print("output id:", output_id) + for name, pl in manifest.pipelines.items(): + print(f"{name + ':': <10}\t{pl.id}") else: print() print(f"{RESET}{BOLD}{RED}Failed{RESET}")