Recognize rhel8 flavor
This commit is contained in:
parent
2fbc6fdac0
commit
9d53e8ccab
@ -12,6 +12,8 @@ module VagrantPlugins
|
||||
# Detect various flavors we care about
|
||||
if output =~ /(CentOS|Red Hat Enterprise|Scientific|Cloud|Virtuozzo)\s*Linux( .+)? release 7/i
|
||||
return :rhel_7
|
||||
elsif output =~ /(CentOS|Red Hat Enterprise|Scientific|Cloud|Virtuozzo)\s*Linux( .+)? release 8/i
|
||||
return :rhel_8
|
||||
else
|
||||
return :rhel
|
||||
end
|
||||
|
||||
@ -27,6 +27,9 @@ describe "VagrantPlugins::GuestRedHat::Cap::Flavor" do
|
||||
"Scientific Linux release 7" => :rhel_7,
|
||||
"CloudLinux release 7.2 (Valeri Kubasov)" => :rhel_7,
|
||||
|
||||
"CentOS Linux release 8.1.1911 (Core)" => :rhel_8,
|
||||
"Red Hat Enterprise Linux release 8" => :rhel_8,
|
||||
|
||||
"CentOS" => :rhel,
|
||||
"RHEL 6" => :rhel,
|
||||
"banana" => :rhel,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user