summaryrefslogtreecommitdiff
path: root/chef-config
diff options
context:
space:
mode:
Diffstat (limited to 'chef-config')
-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