From 5791cd51850763ea728c9991cef82aa1d8001dfd Mon Sep 17 00:00:00 2001 From: William Oldwin Date: Thu, 21 Jan 2016 15:23:55 +0000 Subject: [PATCH] Fix `vagrant up --install-provider` regular expression handling Fixes GH-6908 --- plugins/commands/up/command.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/commands/up/command.rb b/plugins/commands/up/command.rb index 186076c53..5bcb79246 100644 --- a/plugins/commands/up/command.rb +++ b/plugins/commands/up/command.rb @@ -128,9 +128,9 @@ module VagrantPlugins # First create a set of all the providers we need to check for. # Most likely this will be a set of one. providers = Set.new - names.each do |name| + with_target_vms(names) do |machine| # Check if we have this machine in the index - entry = @env.machine_index.get(name.to_s) + entry = @env.machine_index.get(machine.name.to_s) # Get the provider for this machine. This logic isn't completely # straightforward. If we have a forced provider, we always use @@ -146,7 +146,7 @@ module VagrantPlugins p = provider p = entry.provider.to_sym if !p && entry p = @env.default_provider( - machine: name.to_sym, check_usable: false) if !p + machine: machine.name.to_sym, check_usable: false) if !p # Add it to the set providers.add(p)