HomePhorge

(#5661) Creating types dont work with >1 namevar
35dd0702e961Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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

Details

Provenance
Stefan Schulte <stefan.schulte@taunusstein.net>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUcc1f2b39a65e: Merge branch '2.6.next' into 2.6.x
Branches
Unknown
Tags
Unknown

Event Timeline

Stefan Schulte <stefan.schulte@taunusstein.net> committed rPU35dd0702e961: (#5661) Creating types dont work with >1 namevar (authored by Stefan Schulte <stefan.schulte@taunusstein.net>).Dec 23 2010, 8:17 PM