From daf8cfcdeab7b0fe8092d1a479ba26ccf373ad89 Mon Sep 17 00:00:00 2001 From: Torben Date: Sat, 8 Mar 2014 14:55:57 +0100 Subject: [PATCH] only set the `OMNIBUS_DOWNLOAD_DIR` env var if `auto_detect` is true --- 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 233c089..d91beed 100644 --- a/lib/vagrant-cachier/action/configure_bucket_root.rb +++ b/lib/vagrant-cachier/action/configure_bucket_root.rb @@ -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 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