Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GH-370] - Fix yum repo url on redhat #371

Merged
merged 1 commit into from
Aug 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

- Treat redhat like other members of the platform_family when generating yum repo url

## 5.3.2 - *2023-07-10*

## 5.3.1 - *2023-05-17*
Expand Down
2 changes: 1 addition & 1 deletion libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def yum_repo_url(base_url)
def yum_repo_platform_string
release = yum_releasever
# Treat Alma and Rocky as RHEL
if platform?('almalinux', 'rocky', 'amazon')
if platform?('almalinux', 'rocky', 'amazon', 'redhat')
"rhel/#{release}/$basearch"
else
"#{node['platform']}/#{release}/$basearch"
Expand Down
Loading