Issue #2450 has been reported by Digant Kasundra.

----------------------------------------
Bug #2450: undefined method 'ignore_cache?'
http://projects.reductivelabs.com/issues/2450

Author: Digant Kasundra
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Unknown
Affected version: 0.24.8
Keywords: 


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 #<Puppet::Indirector::Request:0xb6f92fd4>

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



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to