HomePhorge

(#5061) - allow special hostclass/define variables to be evaluated as defaults.
ce5a2bf3ba66Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#5061) - allow special hostclass/define variables to be evaluated as defaults.

I have always been annoyed that special variables for defines and hostclasses can not be evaluated as param defaults. Special variables are: $name, $title, $module_name.

Code example:
class x (

foo = $name
) { notice($foo)}

should print x, and with my patch, it does.

Reviewed-by: Paul Berry <paul@puppetlabs.com>

Details

Provenance
Dan Bode <bodepd@gmail.com>Authored on
Paul Berry <paul@puppetlabs.com>Committed on Feb 2 2011, 12:49 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU1ab9bd833237: Merge branch 'ticket/2.6.next/6107' into 2.6.next
Branches
Unknown
Tags
Unknown

Event Timeline