From 3a94b35a62d3fcd0194cd81b65b02d0e17e025ee Mon Sep 17 00:00:00 2001 From: Gianluca Zuccarelli Date: Thu, 11 Apr 2024 12:42:23 +0100 Subject: [PATCH] osbuild: fix newline issue with final output Add a new line to after a successful build and before the final output is printed to the terminal. Since the final build output and the "manifest finished successfully" line were being printed to the same line. --- 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 570e7a0c..28d5f740 100644 --- a/osbuild/main_cli.py +++ b/osbuild/main_cli.py @@ -187,10 +187,10 @@ def osbuild_cli() -> int: stage_timeout=stage_timeout ) if r["success"]: - monitor.log(f"manifest {args.manifest_path} finished successfully", origin="osbuild.main_cli") + monitor.log(f"manifest {args.manifest_path} finished successfully\n", origin="osbuild.main_cli") else: # if we had monitor.error() we could use that here - monitor.log(f"manifest {args.manifest_path} failed", origin="osbuild.main_cli") + monitor.log(f"manifest {args.manifest_path} failed\n", origin="osbuild.main_cli") if r["success"] and exports: for pid in exports: @@ -205,7 +205,6 @@ def osbuild_cli() -> int: for name, pl in manifest.pipelines.items(): print(f"{name + ':': <10}\t{pl.id}") else: - print() print(f"{vt.reset}{vt.bold}{vt.red}Failed{vt.reset}") return 0 if r["success"] else 1