summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZane Geiger <zane.geiger@relativity.com>2018-01-12 14:29:59 -0600
committerTim Smith <tsmith@chef.io>2018-02-21 10:04:30 -0800
commit725558ddb688b9651ef759e704069094e88d4a9b (patch)
treec8c151f22f4b6482763397a74c547e0f5f83c4fc /lib
parent4d891da73538e60dda827e8d4ac6d07c4cf4cd99 (diff)
downloadchef-725558ddb688b9651ef759e704069094e88d4a9b.tar.gz
Change single quotes to double quotes to appease the Style Godssearch_ids
Signed-off-by: Zane Geiger <zane.geiger@relativity.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/knife/search.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/search.rb b/lib/chef/knife/search.rb
index 2ab1ad21cd..94c33aa594 100644
--- a/lib/chef/knife/search.rb
+++ b/lib/chef/knife/search.rb
@@ -99,7 +99,7 @@ class Chef
q.search(@type, @query, search_args) do |item|
formatted_item = Hash.new
if config[:id_only]
- formatted_item = format_for_display({ 'id' => item["__display_name"] })
+ formatted_item = format_for_display({ "id" => item["__display_name"] })
elsif item.is_a?(Hash)
# doing a little magic here to set the correct name
formatted_item[item["__display_name"]] = item.reject { |k| k == "__display_name" }