Ensure @env is set at all times during provision action

This fixes the build and closes #41
This commit is contained in:
Fabio Rehm 2013-08-13 22:41:25 -03:00
parent 8efb8daf07
commit 49b36c012a

View file

@ -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