diff options
author | Vivek Singh <vivek.singh@msystechnologies.com> | 2020-08-24 13:50:11 +0530 |
---|---|---|
committer | Vivek Singh <vivek.singh@msystechnologies.com> | 2020-08-24 13:50:58 +0530 |
commit | bb43b0854873cd31fe72fac42f00a2041a6ccf74 (patch) | |
tree | 1f272a83171e80ee77e97a31dcc8ba308eccf6e7 | |
parent | bc3b330a614449d496e0e204bc55197424f6c9b8 (diff) | |
download | chef-bb43b0854873cd31fe72fac42f00a2041a6ccf74.tar.gz |
Remove to_s operation to every item
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r-- | lib/chef/knife/config_list_profiles.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/config_list_profiles.rb b/lib/chef/knife/config_list_profiles.rb index 0b64ee6398..988ba636f7 100644 --- a/lib/chef/knife/config_list_profiles.rb +++ b/lib/chef/knife/config_list_profiles.rb @@ -100,7 +100,7 @@ class Chef # Replace the home dir in the client key path with ~. profile[:client_key] = profile[:client_key].to_s.gsub(/^#{Regexp.escape(Dir.home)}/, "~") if profile[:client_key] profile[:profile] = "#{profile[:active] ? "*" : " "}#{profile[:profile]}" - rows << profile.values_at(:profile, :client_name, :client_key, :server_url).map(&:to_s) + rows << profile.values_at(:profile, :client_name, :client_key, :server_url) end table = TTY::Table.new(header: TABLE_HEADER, rows: rows) |