Revision 16701e6b
Added by Dominik Matoulek over 2 years ago
app/services/foreman_chef/fact_parser.rb | ||
---|---|---|
# get the minor.build number, e.g. 7.2.1511 -> 2.1511
|
||
minor = release[2..-1]
|
||
end
|
||
when 'centos'
|
||
# Centos Stream doesn't have minor version on need to replace blank spaces due to name restriction
|
||
os_name = facts.dig(:os_release, :name).tr(' ', '_') unless minor
|
||
end
|
||
|
||
begin
|
Also available in: Unified diff
Fixes #33470 - Adding support for CentOS Stream
The facts from Stream has not yet supported in Foreman. This PR adds correct recognition for all parsers.