Merge pull request #79 from pbitty/fix_pr52_regression

Fix regression in #52.
This commit is contained in:
Paulo Bittencourt 2014-02-24 23:23:46 -05:00
commit a7a90d5aae
1 changed files with 3 additions and 1 deletions

View File

@ -100,9 +100,11 @@ module VagrantPlugins
machines = @global_env.machine_names machines = @global_env.machine_names
else else
machines = @global_env.active_machines machines = @global_env.active_machines
.select { |name, provider| provider == @provider }
.collect { |name, provider| name }
end end
# Collect only machines that exist for the current provider # Collect only machines that exist for the current provider
machines.collect do |name, _| machines.collect do |name|
begin begin
machine = @global_env.machine(name, @provider) machine = @global_env.machine(name, @provider)
rescue Vagrant::Errors::MachineNotFound rescue Vagrant::Errors::MachineNotFound