summaryrefslogtreecommitdiff
path: root/lib/chef/search
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-12-18 19:10:26 -0800
committerClaire McQuin <claire@getchef.com>2014-12-18 19:10:26 -0800
commitf08e31446bef0270510f12243858f37eb8e06797 (patch)
tree0ffeba229d0b71a7d65666265d7aa13e879a0f86 /lib/chef/search
parent93cd9823ad4597f7a8682206c47b991ba1344352 (diff)
downloadchef-f08e31446bef0270510f12243858f37eb8e06797.tar.gz
Return all matches by default.
Diffstat (limited to 'lib/chef/search')
-rw-r--r--lib/chef/search/query.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/search/query.rb b/lib/chef/search/query.rb
index 531ad53990..23763ca59f 100644
--- a/lib/chef/search/query.rb
+++ b/lib/chef/search/query.rb
@@ -60,7 +60,6 @@ WARNDEP
# We could pass nil arguments along to search, assuming that default values will be
# filled in later. However, since this is a deprecated method, it will be easier to
# do a little more work here than to change search in the future.
- rows ||= 1000
start ||= 0
sort ||= 'X_CHEF_id_CHEF_X asc'
@@ -91,7 +90,7 @@ WARNDEP
# an example of the returned json may be:
# {"ip_address":"127.0.0.1", "ruby_version": "1.9.3"}
#
- def search(type, query="*:*", filter_result:nil, rows:1000, start:0, sort:'X_CHEF_id_CHEF_X asc', &block)
+ def search(type, query="*:*", filter_result:nil, rows:nil, start:0, sort:'X_CHEF_id_CHEF_X asc', &block)
validate_type(type)
query_string = create_query_string(type, query, rows, start, sort)