Last active
August 29, 2015 14:01
-
-
Save zipkid/b2d28fd64e5be6a6f1f6 to your computer and use it in GitHub Desktop.
Puppet 3.6.1 parser = future FixNum conversion
This file contains 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
puppet apply --parser current -e '$f=1 file { "abc": content=>$f, path=>"/tmp/abc"}' | |
This is OK | |
puppet apply --parser future -e '$f=1 file { "abc": content=>$f, path=>"/tmp/abc"}' | |
Error: Parameter content failed on File[abc]: Munging failed for value 1 in class content: can't convert Fixnum into String at line 1 | |
puppet apply --parser current -e '$f=1 file { $f: path=>"/tmp/abc" }' | |
This is OK | |
puppet apply --parser future -e '$f=1 file { $f: path=>"/tmp/abc" }' | |
Gives : | |
Error: Evaluation Error: Error while evaluating a Resource Statement, In Puppet::Pops::Types::PResourceType : Can not use a Fixnum where a String is expected at line 1:6 on node xxx | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment