diff options
author | Tim Smith <tsmith@chef.io> | 2019-05-23 22:52:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-23 22:52:49 -0700 |
commit | cefc685ad328ec2cdd1fc4e5d8cfb3e691f678cb (patch) | |
tree | 84c1b7d55fb7db9e8472d4707b66371498a63aa5 | |
parent | 5827d6b63034be1f86f7b5afc614a15bde484da0 (diff) | |
parent | af7ca2e6e8a0897e7f9eacc65f463439ab320922 (diff) | |
download | chef-cefc685ad328ec2cdd1fc4e5d8cfb3e691f678cb.tar.gz |
Merge pull request #8590 from chef/btm/preserve-train-connection
Preserve train connection in target mode to prevent running duplicate OS detection commands
-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 # |