Fix regression in #52.

We accidentally stopped filtering out machines from other providers.
This commit is contained in:
Paulo Bittencourt 2014-02-24 13:10:37 -05:00
parent 93fd353135
commit fec2c501fd
1 changed files with 3 additions and 1 deletions

View File

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