Merge pull request #2084 from glensc/fix-2a9d0c9

plugin/hosst/fedora: fix broken regexp from 2a9d0c9
This commit is contained in:
Mitchell Hashimoto 2013-08-27 12:20:01 -07:00
commit 2b3951b91c
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ module VagrantPlugins
release_file = Pathname.new("/etc/redhat-release")
begin
release_file.open("r") do |f|
version_number = /[CentOS|Fedora].*release ([0-9]+)/.match(f.gets)[1].to_i
version_number = /(CentOS|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.