From 8d6c7c62da2c4e8558044c750daf1c68f2eaa136 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Wed, 12 Feb 2014 00:48:20 -0200 Subject: [PATCH] Handle nil value for synced_folder_opts --- lib/vagrant-cachier/action/configure_bucket_root.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-cachier/action/configure_bucket_root.rb b/lib/vagrant-cachier/action/configure_bucket_root.rb index 70f275a..0630378 100644 --- a/lib/vagrant-cachier/action/configure_bucket_root.rb +++ b/lib/vagrant-cachier/action/configure_bucket_root.rb @@ -24,7 +24,7 @@ module VagrantPlugins FileUtils.mkdir_p(cache_root.to_s) unless cache_root.exist? synced_folder_opts = {id: "vagrant-cache"} - synced_folder_opts.merge!(@env[:machine].config.cache.synced_folder_opts) + synced_folder_opts.merge!(@env[:machine].config.cache.synced_folder_opts || {}) @env[:machine].config.vm.synced_folder cache_root, '/tmp/vagrant-cache', synced_folder_opts @env[:cache_dirs] = []