From da96e8c1a4518fd11f02fe55414ec1b2512df6a4 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 14 Mar 2014 00:21:21 -0300 Subject: [PATCH] synced_folder: Fix mount_options on Vagrant 1.4+ --- lib/vagrant-lxc/driver.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant-lxc/driver.rb b/lib/vagrant-lxc/driver.rb index 2300456..858b448 100644 --- a/lib/vagrant-lxc/driver.rb +++ b/lib/vagrant-lxc/driver.rb @@ -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