synced_folder: Fix mount_options on Vagrant 1.4+

This commit is contained in:
Fabio Rehm 2014-03-14 00:21:21 -03:00
parent d6a22c9f88
commit da96e8c1a4

View file

@ -66,7 +66,7 @@ module Vagrant
end
end
def share_folder(host_path, guest_path, mount_options = ['bind'])
def share_folder(host_path, guest_path, mount_options = nil)
guest_path = rootfs_path.join(guest_path.gsub(/^\//, ''))
unless guest_path.directory?
begin
@ -77,7 +77,7 @@ module Vagrant
end
end
mount_options = Array(mount_options)
mount_options = Array(mount_options || ['bind'])
@customizations << ['mount.entry', "#{host_path} #{guest_path} none #{mount_options.join(',')} 0 0"]
end