From fda2bcf0cd6948b49082d53f121ef4232b8f31fd Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Thu, 17 Mar 2022 14:24:38 -0500 Subject: [PATCH] Refactor SSHRun action to make room for remote overrides --- lib/vagrant/action/builtin/ssh_run.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/action/builtin/ssh_run.rb b/lib/vagrant/action/builtin/ssh_run.rb index 2ac41dffa..b69c6a6ac 100644 --- a/lib/vagrant/action/builtin/ssh_run.rb +++ b/lib/vagrant/action/builtin/ssh_run.rb @@ -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