Issue #12668 has been updated by Rahul Gopinath. Status changed from Needs More Information to In Topic Branch Pending Review
The pull request is [here](https://github.com/puppetlabs/puppet/pull/985). Specifically the problem was that the execpipe was returning an array rather than a string because it depended on the caller block returning a valid value. The use of execpipe has now been replaced by execute which does not use a callback block. ---------------------------------------- Bug #12668: package issue for provider sun https://projects.puppetlabs.com/issues/12668#change-68133 Author: Ken Dreyer Status: In Topic Branch Pending Review Priority: Normal Assignee: Rahul Gopinath Category: package Target version: Affected Puppet version: 2.7.10 Keywords: Branch: >From the mailinglist: >https://groups.google.com/group/puppet-users/browse_thread/thread/d8fcf44a79258e62 The sun package provider uses a regex to determine whether a package is installed or not. This regex appears to be broken when a package does not yet exist. Can someone with Ruby experience please tell us what the proper regex should be here? Is Regexp.escape() doing the wrong thing? This does not work: - return {:ensure => :absent} if detail.message =~ /information for "#{Regexp.escape(@resource[:name])}" was not found/ This works: + return {:ensure => :absent} if detail.message =~ /information for .* was not found/ -- 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.
