-
- Downloads
Avoid warning due to re-init of Ruby constant.
We defined a constant RESOLVE_IPNETS__IPFAMILIES in In the file defining the resolve_ipnets() function, we defined a constant RESOLVE_IPNETS__IPFAMILIES. This caused warning messages being sent to syslog by the Puppetmaster process: resolve_ipnets.rb:9: warning: already initialized constant Puppet::Parser::Functions::RESOLVE_IPNETS__IPFAMILIES as that file was loaded from more than one environment, and there is not proper namespace separations for Ruby code in Puppet. Change that constant to a variable local to the resolve_ipnets__netspec() helper function, so we don't get those warnings in syslog.
Loading
Please register or sign in to comment