Merge pull request #2424 from tmatilai/store_provision_enabled

core: store the final `provision_enabled` value to env
This commit is contained in:
Mitchell Hashimoto 2013-11-23 16:46:55 -08:00
commit 97c80c0a62
1 changed files with 7 additions and 2 deletions

View File

@ -42,8 +42,13 @@ module Vagrant
end
end
# If we explicitly specified, take that value.
enabled = env[:provision_enabled] if env.has_key?(:provision_enabled)
if env.has_key?(:provision_enabled)
# If we explicitly specified, take that value.
enabled = env[:provision_enabled]
else
# Otherwise store the value so that other actions can use it.
env[:provision_enabled] = enabled
end
# Ask the provisioners to modify the configuration if needed
provisioner_instances.each do |p|