Skip to content

Commit

Permalink
[GH-370] - Fix yum url on redhat
Browse files Browse the repository at this point in the history
* treat redhat like other members of the platform_family to generate yum repo url

Signed-off-by: Marc Arens <[email protected]>
  • Loading branch information
marens-ox committed Aug 10, 2023
1 parent c91c933 commit 3ac1cfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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

0 comments on commit 3ac1cfc

Please sign in to comment.