From fda6bf7bf797c7724a3babecb0f34665bcc3b582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 27 Aug 2013 22:16:37 +0300 Subject: [PATCH] fix broken regexp from 2a9d0c9 --- plugins/hosts/fedora/host.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hosts/fedora/host.rb b/plugins/hosts/fedora/host.rb index 794ec966a..bd97276b1 100644 --- a/plugins/hosts/fedora/host.rb +++ b/plugins/hosts/fedora/host.rb @@ -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.