Support mounting NFS folders with spaces in FreeBSD [GH-1229]

This commit is contained in:
Mitchell Hashimoto 2013-01-30 22:19:13 -08:00
parent 76ca35a095
commit 4ba0fc821e
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ module VagrantPlugins
def mount_nfs(ip, folders)
folders.each do |name, opts|
vm.communicate.sudo("mkdir -p #{opts[:guestpath]}")
vm.communicate.sudo("mount #{ip}:#{opts[:hostpath]} #{opts[:guestpath]}")
vm.communicate.sudo("mount '#{ip}:#{opts[:hostpath]}' '#{opts[:guestpath]}'")
end
end