summaryrefslogtreecommitdiff
path: root/lib/chef/knife/key_list.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/key_list.rb')
-rw-r--r--lib/chef/knife/key_list.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/chef/knife/key_list.rb b/lib/chef/knife/key_list.rb
index e96a27161f..7a968e85bd 100644
--- a/lib/chef/knife/key_list.rb
+++ b/lib/chef/knife/key_list.rb
@@ -16,9 +16,9 @@
# limitations under the License.
#
-require 'chef/key'
-require 'chef/json_compat'
-require 'chef/exceptions'
+require "chef/key"
+require "chef/json_compat"
+require "chef/exceptions"
class Chef
class Knife
@@ -64,21 +64,21 @@ EOS
if @config[:with_details]
max_length = 0
keys.each do |key|
- key['name'] = key['name'] + ":"
- max_length = key['name'].length if key['name'].length > max_length
+ key["name"] = key["name"] + ":"
+ max_length = key["name"].length if key["name"].length > max_length
end
keys.each do |key|
- next if !key['expired'] && @config[:only_expired]
- next if key['expired'] && @config[:only_non_expired]
+ next if !key["expired"] && @config[:only_expired]
+ next if key["expired"] && @config[:only_non_expired]
display = "#{colorize(key['name'].ljust(max_length))} #{key['uri']}"
display = "#{display} (expired)" if key["expired"]
display_info(display)
end
else
keys.each do |key|
- next if !key['expired'] && @config[:only_expired]
- next if key['expired'] && @config[:only_non_expired]
- display_info(key['name'])
+ next if !key["expired"] && @config[:only_expired]
+ next if key["expired"] && @config[:only_non_expired]
+ display_info(key["name"])
end
end
end