Merge pull request #5928 from mitchellh/sethvargo/ssh_exec_run_command
Use the same ssh args for ssh with a command as ssh exec
This commit is contained in:
commit
d64d229c0f
|
@ -20,8 +20,9 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
def call(env)
|
def call(env)
|
||||||
# Grab the SSH info from the machine
|
# Grab the SSH info from the machine or the environment
|
||||||
info = env[:machine].ssh_info
|
info = env[:ssh_info]
|
||||||
|
info ||= env[:machine].ssh_info
|
||||||
|
|
||||||
# If the result is nil, then the machine is telling us that it is
|
# If the result is nil, then the machine is telling us that it is
|
||||||
# not yet ready for SSH, so we raise this exception.
|
# not yet ready for SSH, so we raise this exception.
|
||||||
|
|
Loading…
Reference in New Issue