Jira (PUP-7799) Puppet::Resources.search fails if conditions provided
Title: Message Title Claire Cadman updated an issue Puppet / PUP-7799 Puppet::Resources.search fails if conditions provided Change By: Claire Cadman Labels: doc-reviewed Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.201900.150068022.79411.1626173040026%40Atlassian.JIRA.
Jira (PUP-7799) Puppet::Resources.search fails if conditions provided
Title: Message Title Josh Cooper commented on PUP-7799 Re: Puppet::Resources.search fails if conditions provided Merged to 6.x in https://github.com/puppetlabs/puppet/commit/41119aa09b25cbdb302888fe550d452c0af85c8c Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.201900.150068022.56002.1623694920293%40Atlassian.JIRA.
Jira (PUP-7799) Puppet::Resources.search fails if conditions provided
Title: Message Title Josh Cooper updated an issue Puppet / PUP-7799 Puppet::Resources.search fails if conditions provided Change By: Josh Cooper Release Notes: Bug Fix Release Notes Summary: Fixed bug that prevented the "Puppet::Resource.indirection.search" method from accepting conditions to filter results. Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.201900.150068022.55987.1623694680028%40Atlassian.JIRA.
Jira (PUP-7799) Puppet::Resources.search fails if conditions provided
Title: Message Title Josh Cooper updated an issue Puppet / PUP-7799 Puppet::Resources.search fails if conditions provided Change By: Josh Cooper Fix Version/s: PUP 7.9.0 Fix Version/s: PUP 6.24.0 Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.201900.150068022.55986.1623694620102%40Atlassian.JIRA.
Jira (PUP-7799) Puppet::Resources.search fails if conditions provided
Title: Message Title Josh Cooper updated an issue Puppet / PUP-7799 Puppet::Resources.search fails if conditions provided Change By: Josh Cooper Sprint: Platform Core KANBAN Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.201900.150068022.54998.1623439260030%40Atlassian.JIRA.
Jira (PUP-7799) Puppet::Resources.search fails if conditions provided
Title: Message Title Josh Cooper assigned an issue to Josh Cooper Puppet / PUP-7799 Puppet::Resources.search fails if conditions provided Change By: Josh Cooper Assignee: Josh Cooper Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.201900.150068022.54984.1623437820036%40Atlassian.JIRA.
Jira (PUP-7799) Puppet::Resources.search fails if conditions provided
Title: Message Title Joshua Partlow updated an issue Puppet / PUP-7799 Puppet::Resources.search fails if conditions provided Change By: Joshua Partlow The [Puppet::Resource::Ral indirectory indirection |https://github.com/puppetlabs/puppet/blob/5.0.1/lib/puppet/indirector/resource/ral.rb#L24-L27] appears to attempt to convert ral to_resource() twice when you provide search criteria (shown here with package). I'm guessing the specs are mocked such as to be validating the broken behavior.{code}require 'puppet'require 'pp'packages = Puppet::Resource.indirection.search("package")pp packages.find { |r| r.name == 'Package/bash' }begin Puppet::Resource.indirection.search("package/bash")rescue Exception => e pp e.backtrace puts eendbegin Puppet::Resource.indirection.search("package", {:ensure => "installed"})rescue Exception => e pp e.backtrace puts eend{code}{code}jpartlow@percival:~/work/src/pl/puppet$ be ruby test.rb Package[bash]{:name=>"bash", :ensure=>"4.3-7ubuntu1.7", :provider=>:apt, :configfiles=>:keep, :reinstall_on_refresh=>:false, :loglevel=>:notice}["/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:27:in `block (2 levels) in search'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:27:in `each'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:27:in `all?'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:27:in `block in search'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:26:in `each'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:26:in `find_all'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:26:in `search'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/indirection.rb:270:in `search'", "test.rb:8:in `'"]undefined method `to_resource' for #["/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:27:in `block (2 levels) in search'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:27:in `each'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:27:in `all?'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:27:in `block in search'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:26:in `each'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:26:in `find_all'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/resource/ral.rb:26:in `search'", "/home/jpartlow/work/src/pl/puppet/lib/puppet/indirector/indirection.rb:270:in `search'", "test.rb:15:in `'"]undefined method `to_resource' for #{code} Add Comment
Jira (PUP-7799) Puppet::Resources.search fails if conditions provided
Title: Message Title Josh Cooper updated an issue Puppet / PUP-7799 Puppet::Resources.search fails if conditions provided Change By: Josh Cooper Team: Platform Core Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7799) Puppet::Resources.search fails if conditions provided
Title: Message Title Joshua Partlow created an issue Puppet / PUP-7799 Puppet::Resources.search fails if conditions provided Issue Type: Bug Affects Versions: PUP 5.0.1 Assignee: Unassigned Created: 2017/07/21 4:37 PM Priority: Normal Reporter: Joshua Partlow The Puppet::Resource::Ral indirectory appears to attempt to convert ral to_resource() twice when you provide search criteria (shown here with package). I'm guessing the specs are mocked such as to be validating the broken behavior. require 'puppet' require 'pp'