Issue #15264 has been updated by Charlie Sharpsteen.

Keywords changed from composite namevar custom title_patterns parse_title to 
composite namevar custom title_patterns parse_title customer

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

* Author: Adrien Thebo
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: provider
* Target version: 2.7.20
* Affected Puppet version: 2.7.17
* Keywords: composite namevar custom title_patterns parse_title customer
* 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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to