diff options
author | Luke Kanies <luke@madstop.com> | 2009-02-02 17:14:12 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2009-02-06 18:08:43 -0600 |
commit | 4b7023e97662f944844cb58cd9807c988e4c28e9 (patch) | |
tree | 39a93e8c153fe2feb94f362cc3984ccb120f6592 /lib/puppet | |
parent | 8dc0005473ad2b0785919e0bd79ac7d60342625d (diff) | |
download | puppet-4b7023e97662f944844cb58cd9807c988e4c28e9.tar.gz puppet-4b7023e97662f944844cb58cd9807c988e4c28e9.tar.xz puppet-4b7023e97662f944844cb58cd9807c988e4c28e9.zip |
Fixing (and testing) the return of Indirection#save
This broke in a previous commit, and was apparently not
tested well because of how the mocks were set up. The
integration test caught it.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/indirector/indirection.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/indirector/indirection.rb b/lib/puppet/indirector/indirection.rb index 2eac2395b..18b764757 100644 --- a/lib/puppet/indirector/indirection.rb +++ b/lib/puppet/indirector/indirection.rb @@ -244,10 +244,12 @@ class Puppet::Indirector::Indirection request = request(:save, instance, *args) terminus = prepare(request) - terminus.save(request) + result = terminus.save(request) # If caching is enabled, save our document there cache.save(request) if cache? + + result end private |