From 50ca748b5c8b7508a945ee8b4d599666c5a88a79 Mon Sep 17 00:00:00 2001 From: Alejandro Ojeda Date: Thu, 25 Aug 2016 03:31:33 +0200 Subject: [PATCH] Fix Vagrant not prioritizing configured providers correctly Fixes #7135: config.vm.provider not setting provider in multi-machine Vagrantfile --- lib/vagrant/environment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index 5f936c0fe..96c9adafd 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -338,7 +338,7 @@ module Vagrant # a priority to each in the order they exist so that we try these first. config = {} root_config.vm.__providers.reverse.each_with_index do |key, idx| - config[key] = idx + config[key] = idx + 1 end # Determine the max priority so that we can add the config priority