Merge pull request #20625 from osalbahr/config-prioritize-pretty-name

config: Remove use of `/etc/redhat-release`
This commit is contained in:
Mike McQuaid 2025-09-03 11:07:03 +00:00 committed by GitHub
commit 6c98d2bf1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,8 +29,6 @@ module OS
else
"#{description} (#{codename})"
end
elsif (redhat_release = Pathname.new("/etc/redhat-release")).readable?
redhat_release.read.chomp
elsif ::OS_VERSION.present?
::OS_VERSION
else