HomePhorge

Towards 5027 -- add options hash to lookupvar as with setvar
739260b28d7cUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Towards 5027 -- add options hash to lookupvar as with setvar

This patch adds an options hash to lookupvar analogous to the one taken by
setvar and uses it to pass in source location for error reporting. It also
fixes the mechanism used by setvar (file was not being passed correctly), adds
line and file information to errors in templates, and extends/corrects tests.

As presently written it does not gather userful line numbers from inline
templates and there are no tests for the template line number generation.

Details

Provenance
Markus Roberts <Markus@reality.com>Authored on
Nick Lewis <nick@puppetlabs.com>Committed on Apr 12 2011, 9:47 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUd7201ed38929: Refactor for 5027 -- get rid of lookup_qualified_var
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPU739260b28d7c: Towards 5027 -- add options hash to lookupvar as with setvar (authored by Markus Roberts <Markus@reality.com>).Apr 12 2011, 9:47 PM