summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2020-09-19 03:11:26 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2020-09-19 03:11:26 +0530
commita923109af69d5cb305d3f2c2ca6da8c0397f874e (patch)
tree70019bdd8af758a9b7540084cd70050c8ecba901
parentae5facbe2c85a7d2628e02a3850db2f8e6c014fa (diff)
downloadchef-a923109af69d5cb305d3f2c2ca6da8c0397f874e.tar.gz
Fix cred knife key transform
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r--chef-config/lib/chef-config/workstation_config_loader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-config/lib/chef-config/workstation_config_loader.rb b/chef-config/lib/chef-config/workstation_config_loader.rb
index 8f481a7a89..bb9e7a4f5b 100644
--- a/chef-config/lib/chef-config/workstation_config_loader.rb
+++ b/chef-config/lib/chef-config/workstation_config_loader.rb
@@ -166,7 +166,7 @@ module ChefConfig
when "client_key"
extract_key(value, :client_key, :client_key_contents)
when "knife"
- Config.knife.merge!(Hash[value.map { |k, v| [k.to_sym, v] }])
+ Config.knife.merge!(value.transform_keys { |k| k.to_sym })
else
Config[key.to_sym] = value
end