rodjek/puppet-lint — Issue #50: Invalid top-scope variable warning in definitions.
Author: vStone
Created: 2011-12-27 08:42:14+00:00
State: open

We can not use namespaces inside definitions. This will only work for classes. There should be no warning inside a definition for using top-scope variables.

Example: deftest.pp

define deftest() {
case $title {
default: {}
}
}

puppet-syntax = OK
puppet-lint = WARNING: top-scope variable being used without an explicit namespace on line 2

We are not able to use $deftest::title since that variable can not be found.