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.
This commit is contained in:
parent
2b2a560aca
commit
3a94b35a62
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue