HomePhorge

(#4549) Fix templates to be able to call all functions
37a19759950bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#4549) Fix templates to be able to call all functions

Only a small subset of Puppet functions were available on the scope in
templates. This had people doing workarounds like:

inline_template("<%= Puppet::Parser::Functions.autoloader.loadall; scope.function_extlookup(['hello world']) %>")

Rather than need to know these workarounds and need to load all
templates, the scope object now uses method_missing to find the function
if avaialable.

Paired-with: Nick Lewis <nick@puppetlabs.com>

Details

Provenance
Matt Robinson <matt@puppetlabs.com>Authored on
Daniel Pittman <daniel@puppetlabs.com>Committed on Sep 17 2011, 12:32 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUfe4029ef5b6e: Merge branch '2.7rc' into 2.7.x
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU37a19759950b: (#4549) Fix templates to be able to call all functions (authored by Matt Robinson <matt@puppetlabs.com>).Sep 17 2011, 12:32 AM