summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Hain <shain@getchef.com>2014-07-14 15:36:42 -0700
committerClaire McQuin <claire@getchef.com>2014-09-04 15:52:23 -0700
commit4c150be847653fd8935a7c3be158d3a12b935138 (patch)
tree456acdd1fdd9884c43246a143c054c8b6b2dee98
parentf0e61d1069f9cde9f1d96f8bc9907c99485c4aaf (diff)
downloadchef-4c150be847653fd8935a7c3be158d3a12b935138.tar.gz
DEPRECATION
-rw-r--r--lib/chef/search/query.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/search/query.rb b/lib/chef/search/query.rb
index 5efea944de..bd7758ee6c 100644
--- a/lib/chef/search/query.rb
+++ b/lib/chef/search/query.rb
@@ -39,6 +39,7 @@ class Chef
# new filtered search method will be in a slightly different format
def partial_search(type, query='*:*', *args, &block)
# accept both types of args
+ Chef::Log.warn("DEPRECATED: The 'partial_search' api is deprecated, please use the search api with 'filter_result'")
if args.length == 1 && args[0].is_a?(Hash)
args_hash = args[0]
args_hash[:filter_result] = args_hash[:keys]