fix missing local variable

This commit is contained in:
Torben 2014-03-08 15:17:16 +01:00
parent daf8cfcdea
commit 03ba78ab26

View file

@ -34,7 +34,7 @@ module VagrantPlugins
def setup_omnibus_cache_folder
# unfortunately vagrant-omnibus hooks in before our buckets are installed, yet
# this is early enough to tell it to download to the vagrant-omnibus pseudo bucket
if env[:machine].config.cache.auto_detect && omnibus_plugin_detected? && omnibus_plugin_enabled?
if @env[:machine].config.cache.auto_detect && omnibus_plugin_detected? && omnibus_plugin_enabled?
ENV['OMNIBUS_DOWNLOAD_DIR'] ||= "#{guest_cache_root}/vagrant-omnibus"
end
end