Merge pull request #1913 from mightybs/master
Stop ruby regex error on "Fedora Core" releases.
This commit is contained in:
commit
79f42fea28
|
@ -34,7 +34,7 @@ module VagrantPlugins
|
|||
release_file = Pathname.new("/etc/redhat-release")
|
||||
begin
|
||||
release_file.open("r") do |f|
|
||||
version_number = /Fedora release ([0-9]+)/.match(f.gets)[1].to_i
|
||||
version_number = /Fedora.*release ([0-9]+)/.match(f.gets)[1].to_i
|
||||
if version_number >= 16
|
||||
# "service nfs-server" will redirect properly to systemctl
|
||||
# when "service nfs-server restart" is called.
|
||||
|
|
Loading…
Reference in New Issue