convert2rhel
convert2rhel copied to clipboard
[RHELC-1684] Pick correct report results after inhibitors
There are two places where we raise the _InhibitorsFound exception, and while this works correctly, we actually are reporting the wrong type of data in one of them. We always assume that the type of data that will be shown to the user is for pre-conversion, but in a further case down the road of conversion, we could also show post conversion results.
This commit patches this bug and tries to correctly show the appropriate result depending on the conversion state.
Jira Issues:
Checklist
- [ ] PR has been tested manually in a VM (either author or reviewer)
- [ ] Jira issue has been made public if possible
- [ ]
[RHELC-]
or[HMS-]
is part of the PR title - [ ] GitHub label has been added to help with Release notes
- [ ] PR title explains the change from the user's point of view
- [ ] Code and tests are documented properly
- [ ] The commits are squashed to as few commits as possible (without losing data)
- [ ] When merged: Jira issue has been updated to
Release Pending
if relevant