Skip to content
Snippets Groups Projects
Commit e3f2794a authored by Thomas Bellman's avatar Thomas Bellman
Browse files

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.
parent ef213a61
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment