Fix Vagrant not prioritizing configured providers correctly
Fixes #7135: config.vm.provider not setting provider in multi-machine Vagrantfile
This commit is contained in:
parent
9c299a2a35
commit
50ca748b5c
|
@ -338,7 +338,7 @@ module Vagrant
|
||||||
# a priority to each in the order they exist so that we try these first.
|
# a priority to each in the order they exist so that we try these first.
|
||||||
config = {}
|
config = {}
|
||||||
root_config.vm.__providers.reverse.each_with_index do |key, idx|
|
root_config.vm.__providers.reverse.each_with_index do |key, idx|
|
||||||
config[key] = idx
|
config[key] = idx + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
# Determine the max priority so that we can add the config priority
|
# Determine the max priority so that we can add the config priority
|
||||||
|
|
Loading…
Reference in New Issue