Issue #15264 has been updated by Andrew  Parker.

Category set to provider
Status changed from Unreviewed to Merged - Pending Release


----------------------------------------
Bug #15264: Custom title patterns can fail cryptically
https://projects.puppetlabs.com/issues/15264#change-68343

Author: Adrien Thebo
Status: Merged - Pending Release
Priority: Normal
Assignee: 
Category: provider
Target version: 2.7.x
Affected Puppet version: 2.7.17
Keywords: composite namevar custom title_patterns parse_title
Branch: https://github.com/puppetlabs/puppet/pull/892


If a type uses a composite namevar and none of the supplied title patterns 
matched, #parse_title will unintentionally return the output of 
#title_patterns. This would lead to unexpected behavior like output like:

    /usr/lib/ruby/1.8/puppet/puppet/resource.rb:235:in `to_hash': undefined 
method `merge' for #<Array:0x007ffba3d80d78> (NoMethodError)

Handling this case and failing deliberately would seem to be a better response.


-- 
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