Merge pull request #4462 from andytson/feature/redhat-flavour-fix
guests/redhat: Fix failure to detect RHEL 7 flavours
This commit is contained in:
commit
18ad1b9baf
|
@ -11,7 +11,7 @@ module VagrantPlugins
|
||||||
output.chomp!
|
output.chomp!
|
||||||
|
|
||||||
# Detect various flavors we care about
|
# Detect various flavors we care about
|
||||||
if output =~ /(CentOS|Red Hat Enterprise) Linux release 7/i
|
if output =~ /(CentOS|Red Hat Enterprise) Linux( .+)? release 7/i
|
||||||
return :rhel_7
|
return :rhel_7
|
||||||
else
|
else
|
||||||
return :rhel
|
return :rhel
|
||||||
|
|
Loading…
Reference in New Issue