From e73e2b375d23b234422e3fce8648d7d57d4b489e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 18 Jul 2013 11:23:46 -0400 Subject: [PATCH] Register fedora host as CentOS too [GH-1394] --- CHANGELOG.md | 1 + plugins/hosts/fedora/host.rb | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8855d09e3..3a85af9d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ BUG FIXES: - NFS export allows access from all private networks on the VM. [GH-1204] - Default VirtualBox VM name now contains the machine name as defined in the Vagrantfile, helping differentiate multi-VM. [GH-1281] + - NFS works properly on CentOS hosts. [GH-1394] ## 1.2.4 (July 16, 2013) diff --git a/plugins/hosts/fedora/host.rb b/plugins/hosts/fedora/host.rb index 40b1ca33d..29535a79c 100644 --- a/plugins/hosts/fedora/host.rb +++ b/plugins/hosts/fedora/host.rb @@ -12,7 +12,9 @@ module VagrantPlugins if release_file.exist? release_file.open("r") do |f| - return true if f.gets =~ /^Fedora/ + contents = f.gets + return true if contents =~ /^Fedora/ + return true if contents =~ /^CentOS/ end end