Primary VMs are respected again.

At some point in the past, primary VMs were no longer respected for
commands. This fixes taht.
This commit is contained in:
Mitchell Hashimoto 2012-06-01 15:10:26 +02:00
parent 9cb53860c2
commit 100e1f7eb0
1 changed files with 5 additions and 1 deletions

View File

@ -100,7 +100,11 @@ module Vagrant
end
# Make sure we're only working with one VM if single target
raise Errors::MultiVMTargetRequired if options[:single_target] && vms.length != 1
if options[:single_target] && vms.length != 1
vm = @env.primary_vm
raise Errors::MultiVMTargetRequired if !vm
vms = [vm]
end
# If we asked for reversed ordering, then reverse it
vms.reverse! if options[:reverse]