Merge pull request #2925 from fgrehm/ensure-synced-folder-types-are-symbols

kernel/v2: Make sure synced folder types are always symbols internally
This commit is contained in:
Mitchell Hashimoto 2014-02-03 02:50:59 -08:00
commit 8ee7fa470f
1 changed files with 2 additions and 3 deletions

View File

@ -150,6 +150,8 @@ module VagrantPlugins
options = options.dup
options[:guestpath] = guestpath.to_s.gsub(/\/$/, '')
options[:hostpath] = hostpath
# Make sure the type is a symbol
options[:type] = options[:type].to_sym if options[:type]
@__synced_folders[options[:guestpath]] = options
end
@ -324,9 +326,6 @@ module VagrantPlugins
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[:type] == :nfs && Vagrant::Util::Platform.windows?
options.delete(:type)