kernel: handle new NFS types

This commit is contained in:
Mitchell Hashimoto 2013-11-22 17:22:47 -08:00
parent 22a5430068
commit 850c9ea7a6
1 changed files with 10 additions and 3 deletions

View File

@ -294,9 +294,16 @@ module VagrantPlugins
end
@__synced_folders.each do |id, options|
if options[:nfs]
options[:type] = :nfs
end
# Make sure the type is a symbol
options[:type] = options[:type].to_sym if options[:type]
# Ignore NFS on Windows
if options[:nfs] && Vagrant::Util::Platform.windows?
options[:nfs] = false
if options[:type] == :nfs && Vagrant::Util::Platform.windows?
options.delete(:type)
end
end
@ -381,7 +388,7 @@ module VagrantPlugins
:path => options[:hostpath])
end
if options[:nfs]
if options[:type] == :nfs
has_nfs = true
if options[:owner] || options[:group]