From 49b36c012a908f3d3c01a568e62d5d0c61a1ee5b Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Tue, 13 Aug 2013 22:41:25 -0300 Subject: [PATCH] Ensure @env is set at all times during provision action This fixes the build and closes #41 --- lib/vagrant-cachier/provision_ext.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant-cachier/provision_ext.rb b/lib/vagrant-cachier/provision_ext.rb index cd17436..e378d3c 100644 --- a/lib/vagrant-cachier/provision_ext.rb +++ b/lib/vagrant-cachier/provision_ext.rb @@ -11,10 +11,10 @@ module VagrantPlugins alias :old_call :call def call(env) - return old_call(env) unless env[:machine].config.cache.enabled? - @env = env + return old_call(env) unless env[:machine].config.cache.enabled? + FileUtils.mkdir_p(cache_root.to_s) unless cache_root.exist? nfs_flag = env[:machine].config.cache.enable_nfs