summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-04-11 13:50:36 -0500
committerLuke Kanies <luke@madstop.com>2008-04-11 13:50:36 -0500
commita6a397b21ce9306307c7614b671de63d74d8141e (patch)
treec8f180d82ad72af990c50dd3fe2e0fe02c81a6d8 /lib
parent04aba5253d774fae013919605363022781f16d55 (diff)
downloadpuppet-a6a397b21ce9306307c7614b671de63d74d8141e.tar.gz
puppet-a6a397b21ce9306307c7614b671de63d74d8141e.tar.xz
puppet-a6a397b21ce9306307c7614b671de63d74d8141e.zip
The 'destroy' method in the indirection now returns
the results of destroying, so they can return true or false.
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/indirector/indirection.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/indirector/indirection.rb b/lib/puppet/indirector/indirection.rb
index 606234dd0..05464f8c9 100644
--- a/lib/puppet/indirector/indirection.rb
+++ b/lib/puppet/indirector/indirection.rb
@@ -225,14 +225,14 @@ class Puppet::Indirector::Indirection
request = request(:destroy, key, *args)
terminus = prepare(request)
- terminus.destroy(request)
+ result = terminus.destroy(request)
if cache? and cached = cache.find(request(:find, key, *args))
# Reuse the existing request, since it's equivalent.
cache.destroy(request)
end
- nil
+ result
end
# Search for more than one instance. Should always return an array.