Skip to content

Commit

Permalink
Add output of convert2rhel analyze command to output
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Waltlova <[email protected]>
  • Loading branch information
andywaltlova committed Nov 15, 2023
1 parent 3a3cf81 commit e1e0a1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/preconversion_assessment_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,14 @@ def run_convert2rhel():
"RHC_WORKER_CONVERT2RHEL_DISABLE_TELEMETRY"
]

_, returncode = run_subprocess(["/usr/bin/convert2rhel", "analyze", "-y"], env=env)
output, returncode = run_subprocess(["/usr/bin/convert2rhel", "analyze", "-y"], env=env)
if returncode:
raise ProcessError(
message=(
"An error occurred during the pre-conversion analysis. "
"For details, refer to the convert2rhel log file on the host at /var/log/convert2rhel/convert2rhel.log"
),
report="convert2rhel execution exited with code '%s'." % returncode,
report="convert2rhel execution exited with code '%s' and following output:\n %s" % (returncode, output)
)


Expand Down

0 comments on commit e1e0a1b

Please sign in to comment.