diff options
author | Bryan McLellan <btm@loftninjas.org> | 2019-05-24 01:04:50 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2019-05-24 01:04:50 -0400 |
commit | af7ca2e6e8a0897e7f9eacc65f463439ab320922 (patch) | |
tree | 84c1b7d55fb7db9e8472d4707b66371498a63aa5 /lib/chef/run_context.rb | |
parent | 5827d6b63034be1f86f7b5afc614a15bde484da0 (diff) | |
download | chef-af7ca2e6e8a0897e7f9eacc65f463439ab320922.tar.gz |
Preserve train connection
We need to save the train connection object as that represents the ssh
connection that we want to reuse.
Fixes #8579
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
Diffstat (limited to 'lib/chef/run_context.rb')
-rw-r--r-- | lib/chef/run_context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/run_context.rb b/lib/chef/run_context.rb index 7c19a33383..49b904aeed 100644 --- a/lib/chef/run_context.rb +++ b/lib/chef/run_context.rb @@ -604,7 +604,7 @@ class Chef # @return [Train::Plugins::Transport::BaseConnection] # def transport_connection - transport.connection + @transport_connection ||= transport.connection end # |