Skip to content

Instantly share code, notes, and snippets.

@zipkid
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zipkid/b2d28fd64e5be6a6f1f6 to your computer and use it in GitHub Desktop.
Save zipkid/b2d28fd64e5be6a6f1f6 to your computer and use it in GitHub Desktop.
Puppet 3.6.1 parser = future FixNum conversion
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