Issue #13888 has been updated by Moses Mendoza. Status changed from Merged - Pending Release to Closed
released originally in 3.0.0rc1 and again in 3.0.0-rc4 ---------------------------------------- Bug #13888: self.instances broken for systemd https://projects.puppetlabs.com/issues/13888#change-71934 Author: Dan Bode Status: Closed Priority: Normal Assignee: Category: Target version: 3.0.0 Affected Puppet version: Keywords: Branch: https://github.com/puppetlabs/puppet/pull/659 If you try to query for a given resource that is implemented using systemd, it currently fails: <pre> puppet resource service mysqld /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:892:in `instances': undefined method `name' for "proc-sys-fs-binfmt_misc.automount":String (NoMethodError) from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:889:in `collect' from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:889:in `instances' from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:882:in `collect' from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:882:in `instances' from /usr/lib/ruby/site_ruby/1.8/puppet/indirector/resource/ral.rb:4:in `find' from /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:196:in `find' from /usr/lib/ruby/site_ruby/1.8/puppet/application/resource.rb:222:in `find_or_save_resources' from /usr/lib/ruby/site_ruby/1.8/puppet/application/resource.rb:144:in `main' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:317:in `run_command' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:309:in `run' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:416:in `hook' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:309:in `run' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:407:in `exit_on_fail' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:309:in `run' from /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in `execute' </pre> After inspection of the code, the problem is that the systemd provider returns the name of the services instead of a Puppet Resource with that name. -- 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.
