summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/http/handler.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-07-29 19:11:58 -0500
committerLuke Kanies <luke@madstop.com>2008-07-29 19:11:58 -0500
commit43a6911f656178efb5c2236c8b890127ab0880d3 (patch)
treebef79d0f47cec0b3e208399d43e7f3a7a357a410 /lib/puppet/network/http/handler.rb
parent1064b5bdcd207efc20ae4ed0fd509364402964f9 (diff)
downloadpuppet-43a6911f656178efb5c2236c8b890127ab0880d3.tar.gz
puppet-43a6911f656178efb5c2236c8b890127ab0880d3.tar.xz
puppet-43a6911f656178efb5c2236c8b890127ab0880d3.zip
Searching again works over REST, including full content-type translation.
The format management is a bit clunky right now, though, so I need to fix how they're managed. Some of these tests fail, but 99% of the remaining work is in other classes so I wanted this as a discrete commit. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/network/http/handler.rb')
-rw-r--r--lib/puppet/network/http/handler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/network/http/handler.rb b/lib/puppet/network/http/handler.rb
index 1a21bfea9..0069933bd 100644
--- a/lib/puppet/network/http/handler.rb
+++ b/lib/puppet/network/http/handler.rb
@@ -81,13 +81,13 @@ module Puppet::Network::HTTP::Handler
# Execute our search.
def do_search(request, response)
args = params(request)
- result = model.search(args).collect {|result| result.to_yaml }.to_yaml
+ result = model.search(args)
# LAK:FAIL This doesn't work.
format = format_to_use(request)
set_content_type(response, format)
- set_response(response, result)
+ set_response(response, model.render_multiple(format, result))
end
# Execute our destroy.