@@ -812,6 +812,7 @@ def gather_target_repositories(context, indata):
812
812
missing_custom_repoids .append (custom_repo .repoid )
813
813
api .current_logger ().debug ("Gathered target repositories: {}" .format (', ' .join (target_repoids )))
814
814
if not target_repoids :
815
+ target_major_version = get_target_major_version ()
815
816
reporting .create_report ([
816
817
reporting .Title ('There are no enabled target repositories' ),
817
818
reporting .Summary (
@@ -833,8 +834,7 @@ def gather_target_repositories(context, indata):
833
834
' Finally, verify that the "/etc/leapp/files/repomap.json" file is up-to-date.'
834
835
).format (version = api .current_actor ().configuration .version .target )),
835
836
reporting .ExternalLink (
836
- # TODO: How to handle different documentation links for each version?
837
- url = 'https://red.ht/preparing-for-upgrade-to-rhel8' ,
837
+ url = 'https://red.ht/preparing-for-upgrade-to-rhel{}' .format (target_major_version ),
838
838
title = 'Preparing for the upgrade' ),
839
839
reporting .RelatedResource ("file" , "/etc/leapp/files/repomap.json" ),
840
840
reporting .RelatedResource ("file" , "/etc/yum.repos.d/" )
@@ -854,7 +854,7 @@ def gather_target_repositories(context, indata):
854
854
reporting .Groups ([reporting .Groups .INHIBITOR ]),
855
855
reporting .Severity (reporting .Severity .HIGH ),
856
856
reporting .ExternalLink (
857
- # TODO: How to handle different documentation links for each version?
857
+ # NOTE: Article covers both RHEL 7 to RHEL 8 and RHEL 8 to RHEL 9
858
858
url = 'https://access.redhat.com/articles/4977891' ,
859
859
title = 'Customizing your Red Hat Enterprise Linux in-place upgrade' ),
860
860
reporting .Remediation (hint = (
0 commit comments