Skip to content

Commit

Permalink
[sous-chefsGH-370] - Fix yum url on redhat
Browse files Browse the repository at this point in the history
* treat redhat like other members of the 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 2dd7906
Showing 1 changed file with 1 addition and 1 deletion.
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 2dd7906

Please sign in to comment.