Skip to content

Commit

Permalink
properly indent the list of supported OSes
Browse files Browse the repository at this point in the history
before:
```
Risk Factor: high (inhibitor)
Title: The installed OS version is not supported for the in-place upgrade to the target RHEL version
Summary: The supported OS releases for the upgrade process:
 RHEL 8.8
RHEL 8.10
RHEL-SAPHANA 8.8
RHEL-SAPHANA 8.10
```

after:
```
Risk Factor: high (inhibitor)
Title: The installed OS version is not supported for the in-place upgrade to the target RHEL version
Summary: The supported OS releases for the upgrade process:
    - RHEL 8.8
    - RHEL 8.10
    - RHEL-SAPHANA 8.8
    - RHEL-SAPHANA 8.10
```
  • Loading branch information
evgeni authored and pirat89 committed May 16, 2024
1 parent d14423e commit c68bc5e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from leapp.libraries.common.config import version

COMMON_REPORT_TAGS = [reporting.Groups.SANITY]
FMT_LIST_SEPARATOR = '\n - '

related = [reporting.RelatedResource('file', '/etc/os-release')]

Expand Down Expand Up @@ -34,8 +35,8 @@ def check_os_version():
'The installed OS version is not supported for the in-place upgrade to the target RHEL version'
),
reporting.Summary(
'The supported OS releases for the upgrade process:\n'
' {}'.format('\n'.join(supported_releases))
'The supported OS releases for the upgrade process:'
'{}{}'.format(FMT_LIST_SEPARATOR, FMT_LIST_SEPARATOR.join(supported_releases))
),
reporting.Severity(reporting.Severity.HIGH),
reporting.Groups(COMMON_REPORT_TAGS),
Expand Down

0 comments on commit c68bc5e

Please sign in to comment.