Ensure @env is set at all times during provision action
This fixes the build and closes #41
This commit is contained in:
parent
8efb8daf07
commit
49b36c012a
1 changed files with 2 additions and 2 deletions
|
@ -11,10 +11,10 @@ module VagrantPlugins
|
||||||
|
|
||||||
alias :old_call :call
|
alias :old_call :call
|
||||||
def call(env)
|
def call(env)
|
||||||
return old_call(env) unless env[:machine].config.cache.enabled?
|
|
||||||
|
|
||||||
@env = env
|
@env = env
|
||||||
|
|
||||||
|
return old_call(env) unless env[:machine].config.cache.enabled?
|
||||||
|
|
||||||
FileUtils.mkdir_p(cache_root.to_s) unless cache_root.exist?
|
FileUtils.mkdir_p(cache_root.to_s) unless cache_root.exist?
|
||||||
|
|
||||||
nfs_flag = env[:machine].config.cache.enable_nfs
|
nfs_flag = env[:machine].config.cache.enable_nfs
|
||||||
|
|
Loading…
Reference in a new issue