HomePhorge

[#4685] Classes, defines, and nodes allowed inside of non-evaluated conditionals
25048ecc40dbUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

[#4685] Classes, defines, and nodes allowed inside of non-evaluated conditionals

Previously, ASTArray#evaluate() was responsible for checking whether
the user had tried to declare a class, define, or node in a prohibited
location (such as a conditional construct). This meant that errors
would only be reported to the user if the conditional code was
actually evaluated.

Moved the checking into the parser, so that errors are always
reported.

Details

Provenance
Paul Berry <paul@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUfb9034731dda: Merge commit '2.6.1rc3' into next
Branches
Unknown
Tags
Unknown

Event Timeline