From 95ebd5b4ca7c2bbff2c5a5d5d95eaa22ad0f52db Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Tue, 13 Mar 2012 05:08:33 -0700 Subject: [PATCH] Allow provisioners to prepare, even if they're not enabled Fixes #801 --- lib/vagrant/action/vm/provision.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/vagrant/action/vm/provision.rb b/lib/vagrant/action/vm/provision.rb index f5ed82f9b..56be8a8e6 100644 --- a/lib/vagrant/action/vm/provision.rb +++ b/lib/vagrant/action/vm/provision.rb @@ -19,12 +19,10 @@ module Vagrant # We set this here so that even if this value is changed in the future, # it stays constant to what we expect here in this moment. enabled = env["provision.enabled"] - if enabled - # Instantiate and prepare the provisioners. Preparation must happen here - # so that shared folders and such can properly take effect. - provisioners = enabled_provisioners - provisioners.map { |p| p.prepare } - end + # Instantiate and prepare the provisioners. Preparation must happen here + # so that shared folders and such can properly take effect. + provisioners = enabled_provisioners + provisioners.map { |p| p.prepare } @app.call(env)