summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Heinen <theinen@tecracer.de>2021-10-12 22:55:07 +0200
committerThomas Heinen <theinen@tecracer.de>2021-10-12 22:55:07 +0200
commit4aad39c3c41f5a0a4459fc43c376dc33f00446d6 (patch)
treef70ee0af9d0966bb3a1cc7b0334f7299f182d4b7
parent013efca161665aa25bcdbd2a1ba813de3bf1b5d4 (diff)
downloadchef-4aad39c3c41f5a0a4459fc43c376dc33f00446d6.tar.gz
Change to setting name to transport_protocol
Signed-off-by: Thomas Heinen <theinen@tecracer.de>
-rw-r--r--chef-config/lib/chef-config/mixin/train_transport.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-config/lib/chef-config/mixin/train_transport.rb b/chef-config/lib/chef-config/mixin/train_transport.rb
index 99d773dace..3bd56650b2 100644
--- a/chef-config/lib/chef-config/mixin/train_transport.rb
+++ b/chef-config/lib/chef-config/mixin/train_transport.rb
@@ -112,7 +112,7 @@ module ChefConfig
# Load the credentials file, and place any valid settings into the train configuration
credentials = load_credentials(tm_config.host)
- protocol = credentials[:train_protocol] || tm_config.protocol
+ protocol = credentials[:transport_protocol] || tm_config.protocol
train_config = tm_config.to_hash.select { |k| Train.options(protocol).key?(k) }
logger.trace("Using target mode options from #{ChefUtils::Dist::Infra::PRODUCT} config file: #{train_config.keys.join(", ")}") if train_config