summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2015-02-25 12:21:57 -0800
committerdanielsdeleo <dan@getchef.com>2015-02-26 09:25:35 -0800
commitc2dfb56e730214266ae07a57a56e5889b1e6b85b (patch)
tree35be744ced735ba2b020d28aebe3ccdfde7d79b0
parente1e0f850507da9cbf0e4247dcc92e6431a8cb1a1 (diff)
downloadchef-c2dfb56e730214266ae07a57a56e5889b1e6b85b.tar.gz
Send search count to stderr
-rw-r--r--lib/chef/knife/search.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/search.rb b/lib/chef/knife/search.rb
index caca99b4d8..a6cec761ce 100644
--- a/lib/chef/knife/search.rb
+++ b/lib/chef/knife/search.rb
@@ -123,8 +123,8 @@ class Chef
if ui.interchange?
output({:results => result_count, :rows => result_items})
else
- ui.msg "#{result_count} items found"
- ui.msg("\n")
+ ui.log "#{result_count} items found"
+ ui.log("\n")
result_items.each do |item|
output(item)
unless config[:id_only]