Created
June 22, 2016 18:20
-
-
Save vinzent/149e8e853c63778dd2803d51ccdc3728 to your computer and use it in GitHub Desktop.
puppet defined test with strict_variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /opt/puppetlabs/bin/puppet apply --strict_variables /tmp/test.pp | |
Error: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String or Type, got Integer at /tmp/test.pp:4:5 on node tmueller-notebook.local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$myvar = 1 | |
if !defined($myvar) { | |
notify { 'test': } | |
} |
Author
vinzent
commented
Jun 22, 2016
neeeds to be '$myvar'
not just $myvar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment