Skip to content

Commit

Permalink
Remove a hack for non-EL8 Katello
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl authored and Odilhao committed Dec 7, 2023
1 parent b7ef5bb commit fd88551
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions roles/forklift_versions/library/forklift_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ def main():
for version in reversed(versions['installers']):
if not scenario_os in version['boxes']:
continue
# this is a hack, to be removed once all Katello versions support EL8 in the same manner Foreman does
# aka: when 4.4 is released
if scenario == 'katello' and (scenario_os.startswith('centos8') or scenario_os.startswith('almalinux8')) and version_sort_key(version[scenario]) < version_sort_key('4.0'):
continue
if version_sort_key(version[scenario]) <= version_sort_key(scenario_version):
possible_versions.add(version[scenario])
possible_versions = list(sorted(possible_versions, key=version_sort_key, reverse=True))
Expand Down

0 comments on commit fd88551

Please sign in to comment.