providers/virtualbox: fix broken NFS check
This commit is contained in:
parent
850c9ea7a6
commit
0b9861db7d
|
@ -44,7 +44,7 @@ module Vagrant
|
||||||
|
|
||||||
if File.directory?(data[:hostpath])
|
if File.directory?(data[:hostpath])
|
||||||
data[:hostpath] = File.realpath(data[:hostpath])
|
data[:hostpath] = File.realpath(data[:hostpath])
|
||||||
data[:hostpath] = Util::Platform.fs_real_path(data[:hostpath])
|
data[:hostpath] = Util::Platform.fs_real_path(data[:hostpath]).to_s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -59,9 +59,9 @@ module VagrantPlugins
|
||||||
b.use PrepareForwardedPortCollisionParams
|
b.use PrepareForwardedPortCollisionParams
|
||||||
b.use HandleForwardedPortCollisions
|
b.use HandleForwardedPortCollisions
|
||||||
b.use PruneNFSExports
|
b.use PruneNFSExports
|
||||||
b.use PrepareNFSSettings
|
|
||||||
b.use ClearSharedFolders
|
b.use ClearSharedFolders
|
||||||
b.use SyncedFolders
|
b.use SyncedFolders
|
||||||
|
b.use PrepareNFSSettings
|
||||||
b.use ClearNetworkInterfaces
|
b.use ClearNetworkInterfaces
|
||||||
b.use Network
|
b.use Network
|
||||||
b.use ForwardPorts
|
b.use ForwardPorts
|
||||||
|
|
|
@ -12,7 +12,7 @@ module VagrantPlugins
|
||||||
|
|
||||||
using_nfs = false
|
using_nfs = false
|
||||||
env[:machine].config.vm.synced_folders.each do |id, opts|
|
env[:machine].config.vm.synced_folders.each do |id, opts|
|
||||||
if opts[:nfs]
|
if opts[:type] == :nfs
|
||||||
using_nfs = true
|
using_nfs = true
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue