diff options
author | Vivek Singh <vivek.singh@msystechnologies.com> | 2020-09-19 10:03:42 +0530 |
---|---|---|
committer | Vivek Singh <vivek.singh@msystechnologies.com> | 2020-09-19 10:03:42 +0530 |
commit | aea5f9b1b5fa26986f29b10de48dca9964a71b8f (patch) | |
tree | 64b7840971a8b142240c7bf11101cc3b6e444859 | |
parent | a5381c29675cf67852353db2cf7e67c62f737e7c (diff) | |
download | chef-aea5f9b1b5fa26986f29b10de48dca9964a71b8f.tar.gz |
Fix cheftyle
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r-- | chef-config/lib/chef-config/mixin/train_transport.rb | 2 | ||||
-rw-r--r-- | chef-config/lib/chef-config/workstation_config_loader.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chef-config/lib/chef-config/mixin/train_transport.rb b/chef-config/lib/chef-config/mixin/train_transport.rb index 0edac67a28..942f0ab3b7 100644 --- a/chef-config/lib/chef-config/mixin/train_transport.rb +++ b/chef-config/lib/chef-config/mixin/train_transport.rb @@ -44,7 +44,7 @@ module ChefConfig # host names must be specified in credentials file as ['foo.example.org'] with quotes if !credentials.nil? && !credentials[profile].nil? - credentials[profile].transform_keys { |k| k.to_sym } # return symbolized keys to match Train.options() + credentials[profile].transform_keys(&:to_sym) # return symbolized keys to match Train.options() else nil end diff --git a/chef-config/lib/chef-config/workstation_config_loader.rb b/chef-config/lib/chef-config/workstation_config_loader.rb index bb9e7a4f5b..6c8b4e0235 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!(value.transform_keys { |k| k.to_sym }) + Config.knife.merge!(value.transform_keys(&:to_sym) else Config[key.to_sym] = value end |