summaryrefslogtreecommitdiff
path: root/lib/chef/knife
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2017-03-20 15:56:01 -0700
committerNoah Kantrowitz <noah@coderanger.net>2017-03-20 15:56:01 -0700
commitd648136085c4061eaefa04ad823c49a14282a749 (patch)
treee517a8435e25767790c6b84e05c8afd9cf136d96 /lib/chef/knife
parent472f0145f7a6b5044ef74ac153abe95cf54a8f9d (diff)
downloadchef-d648136085c4061eaefa04ad823c49a14282a749.tar.gz
Remove support for the sort option to searches.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r--lib/chef/knife/search.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/chef/knife/search.rb b/lib/chef/knife/search.rb
index 046d1c7c52..7fc76b28c0 100644
--- a/lib/chef/knife/search.rb
+++ b/lib/chef/knife/search.rb
@@ -37,12 +37,6 @@ class Chef
banner "knife search INDEX QUERY (options)"
- option :sort,
- :short => "-o SORT",
- :long => "--sort SORT",
- :description => "The order to sort the results in",
- :default => nil
-
option :start,
:short => "-b ROW",
:long => "--start ROW",
@@ -92,7 +86,6 @@ class Chef
result_count = 0
search_args = Hash.new
- search_args[:sort] = config[:sort] if config[:sort]
search_args[:start] = config[:start] if config[:start]
search_args[:rows] = config[:rows] if config[:rows]
if config[:filter_result]