From b21450ac397ad9aca7aa13a247f889e9dc354344 Mon Sep 17 00:00:00 2001 From: Petr Stodulka Date: Fri, 26 Apr 2024 13:46:00 +0200 Subject: [PATCH 3/7] Reword the report msg in the console output to note remediations Users who do not understand why they should read the generated leapp report. They are missing that the console output is just a summary overview of the report itself. Rewording the msg little bit to make it explicitely clear that report contains more details about discovered problems and possible remediation instructions. Also switch order of printed reports paths: txt first. Jira: https://issues.redhat.com/browse/RHEL-25406 https://issues.redhat.com/browse/RHEL-25407 --- leapp/utils/output.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/leapp/utils/output.py b/leapp/utils/output.py index 4bca481..4e91718 100644 --- a/leapp/utils/output.py +++ b/leapp/utils/output.py @@ -202,10 +202,12 @@ def report_info(context_id, report_paths, log_paths, answerfile=None, fail=False _print_reports_summary(reports) print( - '\n{bold}Before continuing consult the full report:{reset}' + '\n{bold}Before continuing, review the full report below for details' + ' about discovered problems and possible remediation instructions:{reset}' .format(bold=Color.bold, reset=Color.reset) ) - for report_path in report_paths: + for report_path in sorted(report_paths, reverse=True): + # NOTE: sort hack -> print .txt first sys.stdout.write(" A report has been generated at {path}\n".format(path=report_path)) if answerfile: -- 2.42.0