Skip to content

Commit

Permalink
Reword the report msg in the console output to note remediations
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pirat89 authored and fernflower committed Apr 30, 2024
1 parent 9050ff0 commit b21450a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions leapp/utils/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b21450a

Please sign in to comment.