Issue #5843 has been updated by Luke Kanies.

Unfortunately that exactly doesn't actually work any more, but the bug is still 
very real.
----------------------------------------
Bug #5843: The 'file' type still uses self.class[] in self.class.instances
https://projects.puppetlabs.com/issues/5843

Author: Luke Kanies
Status: Accepted
Priority: Normal
Assignee: 
Category: file
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


This code path is used when trying to retrieve files via the indirector in the 
Resource class.  Here's the stack trace:
<pre>
luke@syringe $ puppet data --trace resource find --from ral file /tmp/foo
/Users/luke/puppet/lib/puppet/type.rb:755:in `[]'
/Users/luke/puppet/lib/puppet/type/file.rb:290:in `[]'
/Users/luke/puppet/lib/puppet/type/file.rb:302:in `instances'
/Users/luke/puppet/lib/puppet/type/file.rb:298:in `each'
/Users/luke/puppet/lib/puppet/type/file.rb:298:in `instances'
/Users/luke/puppet/lib/puppet/indirector/resource/ral.rb:4:in `find'
/Users/luke/puppet/lib/puppet/indirector/indirection.rb:193:in `find'
/Users/luke/puppet/lib/puppet/application/data.rb:42:in `send'
/Users/luke/puppet/lib/puppet/application/data.rb:42:in `main'
/Users/luke/puppet/lib/puppet/application.rb:298:in `run_command'
/Users/luke/puppet/lib/puppet/application.rb:290:in `run'
/Users/luke/puppet/lib/puppet/application.rb:396:in `exit_on_fail'
/Users/luke/puppet/lib/puppet/application.rb:290:in `run'
/Users/luke/puppet/lib/puppet/util/command_line.rb:55:in `execute'
/Users/luke/puppet/bin/puppet:4
Could not call find on resource: Global resource access is deprecated
[prototype/master/data_app ~/puppet]
luke@syringe $
</pre>
This can be easily tested with my <a 
href="https://github.com/lak/puppet/blob/prototype/master/data_app/lib/puppet/application/data.rb";>'data'
 application</a>.


-- 
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://projects.puppetlabs.com/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