From b2d1a26dcff223dac2f0244e269468687b5d88d7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 20 Jul 2013 00:38:58 -0400 Subject: [PATCH] NFS request is silently ignored on Windows [GH-1748] --- CHANGELOG.md | 1 + plugins/kernel_v2/config/vm.rb | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c70fb8ee9..8d9903849 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ BUG FIXES: - Forwarded ports don't auto-correct by default, and will raise an error properly if they collide. [GH-1701] - Retry SSH on ENETUNREACH error. [GH-1732] + - NFS is silently ignored on Windows. [GH-1748] ## 1.2.4 (July 16, 2013) diff --git a/plugins/kernel_v2/config/vm.rb b/plugins/kernel_v2/config/vm.rb index f8953d419..4e2ea5f20 100644 --- a/plugins/kernel_v2/config/vm.rb +++ b/plugins/kernel_v2/config/vm.rb @@ -4,6 +4,7 @@ require "set" require "vagrant" require "vagrant/config/v2/util" +require "vagrant/util/platform" require File.expand_path("../vm_provisioner", __FILE__) require File.expand_path("../vm_subvm", __FILE__) @@ -265,6 +266,13 @@ module VagrantPlugins @__compiled_provider_configs[name] = config end + @__synced_folders.each do |id, options| + # Ignore NFS on Windows + if options[:nfs] && Vagrant::Util::Platform.windows? + options[:nfs] = false + end + end + # Flag that we finalized @__finalized = true end