Refactor SSHRun action to make room for remote overrides

This commit is contained in:
Paul Hinze 2022-03-17 14:24:38 -05:00
parent 6471a5a310
commit fda2bcf0cd
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -70,11 +70,15 @@ module Vagrant
opts[:extra_args] << command
opts[:subprocess] = true
env[:ssh_run_exit_status] = Util::SSH.exec(info, opts)
env[:ssh_run_exit_status] = _raw_ssh_exec(env, info, opts)
# Call the next middleware
@app.call(env)
end
def _raw_ssh_exec(env, info, opts)
Util::SSH.exec(info, opts)
end
end
end
end