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:
parent
9cb53860c2
commit
100e1f7eb0
|
@ -100,7 +100,11 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
# Make sure we're only working with one VM if single target
|
# 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
|
# If we asked for reversed ordering, then reverse it
|
||||||
vms.reverse! if options[:reverse]
|
vms.reverse! if options[:reverse]
|
||||||
|
|
Loading…
Reference in New Issue