Fix regression in #52.
We accidentally stopped filtering out machines from other providers.
This commit is contained in:
parent
93fd353135
commit
fec2c501fd
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue