diff --git a/plugins/kernel_v2/config/push.rb b/plugins/kernel_v2/config/push.rb index e1cb95734..e0137b29d 100644 --- a/plugins/kernel_v2/config/push.rb +++ b/plugins/kernel_v2/config/push.rb @@ -21,18 +21,18 @@ module VagrantPlugins # Compile all the provider configurations @__defined_pushes.each do |name, tuples| - # Capture the strategy so we can use it later. This will be used in - # the block iteration for merging/overwriting - strategy = name - strategy = tuples[0][0] if tuples[0] - # Find the configuration class for this push - config_class = Vagrant.plugin("2").manager.push_configs[strategy] + config_class = Vagrant.plugin("2").manager.push_configs[name] config_class ||= Vagrant::Config::V2::DummyConfig # Load it up config = config_class.new + # Capture the strategy so we can use it later. This will be used in + # the block iteration for merging/overwriting + strategy = name + strategy = tuples[0][0] if tuples[0] + begin tuples.each do |s, b| # Update the strategy if it has changed, reseting the current