Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
PUP 4.4.2
-
-
Platform Core
-
Platform Core KANBAN
-
Bug Fix
-
Attempt to use an empty string or undef as the name of a class when calling {{include}} will now raise an error instead of appearing to be silently ignored.
Description
❯ puppet apply -e "include undef"
|
Notice: Compiled catalog for zhora.local in environment production in 0.04 seconds
|
Notice: Applied catalog in 0.03 seconds
|
Expected results: compilation failure
Similarly, include '' doesn't fail, though include nosuchclass does.
Example scenario: include $::some::class::tyypo (in my case, I accidentally grabbed the dollar sign while copying and pasting)