diff --git a/lib/vagrant/action/builder.rb b/lib/vagrant/action/builder.rb index 1c5ba8592a5966106716f5ce87d01882517047ef..33eeee2c216a42af6a8ba2af01caf43ee8303716 100644 --- a/lib/vagrant/action/builder.rb +++ b/lib/vagrant/action/builder.rb @@ -173,23 +173,16 @@ module Vagrant # be modified builder = self.dup - if env[:builder_applied] != env[:action_name] - apply_action_name = true - env[:builder_applied] = env[:action_name] - end - # Apply all dynamic modifications of the stack. This # will generate dynamic hooks for all actions within # the stack, load any triggers for action classes, and # apply them to the builder's stack builder.apply_dynamic_updates(env) - if apply_action_name - # Now that the stack is fully expanded, apply any - # action hooks that may be defined so they are on - # the outermost locations of the stack - builder.apply_action_name(env) - end + # Now that the stack is fully expanded, apply any + # action hooks that may be defined so they are on + # the outermost locations of the stack + builder.apply_action_name(env) # Wrap the middleware stack with the Warden to provide a consistent # and predictable behavior upon exceptions.