kernel: handle new NFS types
This commit is contained in:
parent
22a5430068
commit
850c9ea7a6
|
@ -294,9 +294,16 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
@__synced_folders.each do |id, options|
|
@__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
|
# Ignore NFS on Windows
|
||||||
if options[:nfs] && Vagrant::Util::Platform.windows?
|
if options[:type] == :nfs && Vagrant::Util::Platform.windows?
|
||||||
options[:nfs] = false
|
options.delete(:type)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -381,7 +388,7 @@ module VagrantPlugins
|
||||||
:path => options[:hostpath])
|
:path => options[:hostpath])
|
||||||
end
|
end
|
||||||
|
|
||||||
if options[:nfs]
|
if options[:type] == :nfs
|
||||||
has_nfs = true
|
has_nfs = true
|
||||||
|
|
||||||
if options[:owner] || options[:group]
|
if options[:owner] || options[:group]
|
||||||
|
|
Loading…
Reference in New Issue