Fix Vagrant not prioritizing configured providers correctly

Fixes #7135: config.vm.provider not setting provider in multi-machine Vagrantfile
This commit is contained in:
Alejandro Ojeda 2016-08-25 03:31:33 +02:00
parent 9c299a2a35
commit 50ca748b5c
1 changed files with 1 additions and 1 deletions

View File

@ -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