diff options
author | Stefan Schulte <stefan.schulte@taunusstein.net> | 2010-12-05 11:30:42 +0100 |
---|---|---|
committer | Stefan Schulte <stefan.schulte@taunusstein.net> | 2010-12-23 20:17:41 +0100 |
commit | 35dd0702e9619706b6365a98da2826a612a4047a (patch) | |
tree | 5672915eba8542bae3250d55ca6e270c0e8b686e /lib/puppet/util/rails/reference_serializer.rb | |
parent | cc1f2b39a65e8b74c8e59a2bf7d8f47a35985ee4 (diff) | |
download | puppet-35dd0702e9619706b6365a98da2826a612a4047a.tar.gz puppet-35dd0702e9619706b6365a98da2826a612a4047a.tar.xz puppet-35dd0702e9619706b6365a98da2826a612a4047a.zip |
(#5661) Creating types dont work with >1 namevar
The methods [] and []= of type.rb are handling :name in a special way.
When someone wants to access resource[:name] puppet tries to replace
:name with the name_var. If the type has more than one key_attribute
name_var is always returning false so we'll get the error
Resource type <resourcetype> does not support parameter false
This patch doesnt try to substitute :name if we dont have a single
namevar, aka. we have more than one key_attribute
Diffstat (limited to 'lib/puppet/util/rails/reference_serializer.rb')
0 files changed, 0 insertions, 0 deletions