diff options
author | Claire McQuin <claire@getchef.com> | 2014-12-19 10:24:34 -0800 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-12-19 10:24:34 -0800 |
commit | 3773e1835e576df5bdb726ab8818783598eb8926 (patch) | |
tree | f5965b5182c7b638b7a24a66491ee9387fcc4750 /lib/chef/search/query.rb | |
parent | 99ee719e4021e9e590ecca4d88596cfa27c1ac19 (diff) | |
download | chef-3773e1835e576df5bdb726ab8818783598eb8926.tar.gz |
Use 2.0 syntax (required keyword arguments are 2.1+).
Diffstat (limited to 'lib/chef/search/query.rb')
-rw-r--r-- | lib/chef/search/query.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/search/query.rb b/lib/chef/search/query.rb index ef17267ab0..610f247420 100644 --- a/lib/chef/search/query.rb +++ b/lib/chef/search/query.rb @@ -84,7 +84,7 @@ WARNDEP validate_type(type) args_h = hashify_args(*args) - response = call_rest_service(type: type, query: query, **args_h) + response = call_rest_service(type, query: query, **args_h) if block response["rows"].each { |row| block.call(row) if row } @@ -124,7 +124,7 @@ WARNDEP s && URI.escape(s.to_s) end - def call_rest_service(type:, query:'*:*', rows:nil, start:0, sort:'X_CHEF_id_CHEF_X asc', filter_result:nil) + def call_rest_service(type, query:'*:*', rows:nil, start:0, sort:'X_CHEF_id_CHEF_X asc', filter_result:nil) query_string = "search/#{type}?q=#{escape(query)}&sort=#{escape(sort)}&start=#{escape(start)}&rows=#{escape(rows)}" if filter_result |