An error occurred while fetching folder content.
Torbjörn Lönnemark
authored
In Puppet 7, extra methods within a function definition block are no longer permitted when using the 3.x API. Attempting to use such functions aborts catalog compilation with: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Internal Server Error: org.jruby.exceptions.SecurityError: (SecurityError) Illegal method definition of method 'example_function' in source .../example-module/lib/puppet/parser/functions/example_function.rb on line XXX in legacy function. See https://puppet.com/docs/puppet/latest/functions_refactor_legacy.html for more information We fix the error by updating the only function that has extra methods to use the 4.x API. This change drops support for Puppet 3. https://puppet.com/docs/puppet/7/functions_refactor_legacy.html https://puppet.com/docs/puppet/5.5/functions_legacy.html https://puppet.com/docs/puppet/7/functions_ruby_overview.html
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Name | Last commit | Last update |
---|---|---|
.. |