Skip to content

Commit 7d50c28

Browse files
committed
Output additional data for the check_os_release actor
Before it didn't detail what OS version was detected - which caused some uncertainty when debugging caused "unsupported OS" inhibitors on a system that should not have had those.
1 parent 65c3999 commit 7d50c28

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

repos/system_upgrade/common/actors/checkosrelease/libraries/checkosrelease.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,18 @@ def check_os_version():
3030
for rel in version.SUPPORTED_VERSIONS:
3131
for ver in version.SUPPORTED_VERSIONS[rel]:
3232
supported_releases.append(rel.upper() + ' ' + ver)
33+
34+
installed_release, installed_version = version.current_version()
35+
installed_str = installed_release.upper() + ' ' + installed_version
36+
3337
reporting.create_report([
3438
reporting.Title(
3539
'The installed OS version is not supported for the in-place upgrade to the target RHEL version'
3640
),
3741
reporting.Summary(
42+
'Installed OS release: {}\n'
3843
'The supported OS releases for the upgrade process:\n'
39-
' {}'.format('\n'.join(supported_releases))
44+
' {}'.format(installed_str, '\n'.join(supported_releases))
4045
),
4146
reporting.Severity(reporting.Severity.HIGH),
4247
reporting.Tags(COMMON_REPORT_TAGS),

0 commit comments

Comments
 (0)