summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2019-05-24 01:04:50 -0400
committerBryan McLellan <btm@loftninjas.org>2019-05-24 01:04:50 -0400
commitaf7ca2e6e8a0897e7f9eacc65f463439ab320922 (patch)
tree84c1b7d55fb7db9e8472d4707b66371498a63aa5
parent5827d6b63034be1f86f7b5afc614a15bde484da0 (diff)
downloadchef-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>
-rw-r--r--lib/chef/run_context.rb2
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
#