summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Berry <paul@puppetlabs.com>2010-11-30 11:13:18 -0800
committerPaul Berry <paul@puppetlabs.com>2010-11-30 11:13:18 -0800
commit29a68730e4157a780f568529fbf32c9907f48731 (patch)
tree8246aaab6fe69a571979e5fec5cbf5399d9e8eee /lib
parentcb6e9c990945501962bf9bf864309e8e6f83b827 (diff)
parent8766efea906f57428ff175cae9355d4b03d499d9 (diff)
downloadpuppet-29a68730e4157a780f568529fbf32c9907f48731.tar.gz
puppet-29a68730e4157a780f568529fbf32c9907f48731.tar.xz
puppet-29a68730e4157a780f568529fbf32c9907f48731.zip
Merge branch 'maint/next/remove_indirection_delegation' into next
* maint/next/remove_indirection_delegation: Maint: Make http handler code call the indirector through ".indirection"
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/network/http/handler.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/network/http/handler.rb b/lib/puppet/network/http/handler.rb
index 82238aa0a..fbd7d195f 100644
--- a/lib/puppet/network/http/handler.rb
+++ b/lib/puppet/network/http/handler.rb
@@ -103,7 +103,7 @@ module Puppet::Network::HTTP::Handler
# Execute our find.
def do_find(indirection_name, key, params, request, response)
- unless result = model(indirection_name).find(key, params)
+ unless result = model(indirection_name).indirection.find(key, params)
Puppet.info("Could not find #{indirection_name} for '#{key}'")
return do_exception(response, "Could not find #{indirection_name} #{key}", 404)
end
@@ -120,7 +120,7 @@ module Puppet::Network::HTTP::Handler
# Execute our search.
def do_search(indirection_name, key, params, request, response)
model = self.model(indirection_name)
- result = model.search(key, params)
+ result = model.indirection.search(key, params)
if result.nil?
return do_exception(response, "Could not find instances in #{indirection_name} with '#{key}'", 404)
@@ -134,7 +134,7 @@ module Puppet::Network::HTTP::Handler
# Execute our destroy.
def do_destroy(indirection_name, key, params, request, response)
- result = model(indirection_name).destroy(key, params)
+ result = model(indirection_name).indirection.destroy(key, params)
return_yaml_response(response, result)
end