Bug #2450

undefined method 'ignore_cache?'

Added by Digant Kasundra over 2 years ago. Updated almost 2 years ago.

Status:Closed Start date:07/27/2009
Priority:Normal Due date:
Assignee:Luke Kanies % Done:

0%

Category:-
Target version:-
Affected Puppet version:0.24.8 Branch:
Keywords:
Votes: 0

Description

This is in the asynchronous storeconfigs branch. I get the error:

err: Cached node for puppet-test.stanford.edu failed: undefined method `ignore_cache?' for #

I believe the fix may be:

diff --git a/lib/puppet/indirector/indirection.rb b/lib/puppet/indirector/indire
index b5b2175..41f4c05 100644
--- a/lib/puppet/indirector/indirection.rb
+++ b/lib/puppet/indirector/indirection.rb
@@ -224,7 +224,7 @@ class Puppet::Indirector::Indirection
 
     def find_in_cache(request)
         # See if our instance is in the cache and up to date.
-        return nil unless cache? and ! request.ignore_cache? and cached = cache
+        return nil unless cache? and ! Puppet[:ignorecache] and cached = cache.
         if cached.expired?
             Puppet.info "Not using expired %s for %s from cache; expired at %s"
             return nil

History

Updated by Luke Kanies over 2 years ago

  • Status changed from Unreviewed to Closed
  • Assignee set to Luke Kanies

This is actually essentially a support ticket, as it’s only in a branch used by a customer.

Fixed in the branch.

Also available in: Atom PDF