fraenki / puppet-sshkeys

Puppet module to manage ssh public keys.
https://forge.puppetlabs.com/fraenki/sshkeys
BSD 2-Clause "Simplified" License
9 stars 9 forks source link

Fix legacy API functions with Puppet >= 5.5.7 #13

Closed oxc closed 5 years ago

oxc commented 5 years ago

Since changes for PUP-6964 added in version 5.5.7, Puppet requires 3.x functions to include the string Puppet::Parser::Functions, otherwise it will raise an exception.

This patch replaces nested module declarations with a single one to pass this somewhat hacky check.

See ruby_legacy_function_instantiator.rb#L16 and https://github.com/puppetlabs/puppet/commit/f829da9de3c66c3ac980891fc38c1e0b6e8fb435

If in doubt, try viewing the changes with --ignore-space-change

fraenki commented 5 years ago

@oxc Merged, thanks!