Skip to content

Instantly share code, notes, and snippets.

@vStone
Created January 27, 2017 12:05
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 vStone/1bc3dd691c93dac1b8b33b0add8e467a to your computer and use it in GitHub Desktop.
Save vStone/1bc3dd691c93dac1b8b33b0add8e467a to your computer and use it in GitHub Desktop.
$ puppet apply --modulepath=. -e 'include test'
Warning: ModuleLoader: module 'test' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules
(file & line not available)
Error: Evaluation Error: Error while evaluating a Function Call, can't modify frozen String at /home/jan/tmp/test/manifests/init.pp:4:16 on node minimoose.home.vstone.be
class test {
notify {'test':
message => test_function('foobar'),
}
}
Puppet::Functions.create_function(:test_function) do
def test_function(value)
value.reverse!
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment