You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrade of puppetserver to 6.2.0, I started getting to following errors:
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 'validate_keys' on line 8' in legacy function. See https://puppet.com/docs/puppet/latest/functions_refactor_legacy.html for more information
The only use of validate_keys in my puppet code is in the puppet-sensu module sensu_sorted_json.rb and I was able to confirm the error was due to the puppet-sensu module by using a test environment without the sensu module which compiled successfully.
I have worked around this by adding "func3x_check = false" to the master section of puppet.conf.
I will see if I can figure out how to refactor sensu_sorted_json.rb later
Platform and version information
Your OS: Ubuntu 16.04
Your version of Puppet: 6.2.0
Your version of this module: v2.42.0 (sensu_sorted_json.rb file hasn't changed much since then)
The text was updated successfully, but these errors were encountered:
It looks like the sensu_sorted_json would need to be converted to new function format introduced in Puppet 4. My read of PUP-9294 is that any legacy function that defines Ruby functions will generate an error so only way to refactor would be to move away from the legacy function and use new function format.
Description of problem
After upgrade of puppetserver to 6.2.0, I started getting to following errors:
This was explicitly called out in the 6.2.0 Release Notes:
https://tickets.puppetlabs.com/browse/PUP-9294
The only use of validate_keys in my puppet code is in the puppet-sensu module sensu_sorted_json.rb and I was able to confirm the error was due to the puppet-sensu module by using a test environment without the sensu module which compiled successfully.
I have worked around this by adding "func3x_check = false" to the master section of puppet.conf.
I will see if I can figure out how to refactor sensu_sorted_json.rb later
Platform and version information
The text was updated successfully, but these errors were encountered: