Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-5859

puppetlabs-chocolatey : already initialized constant warning

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • chocolatey
    • None
    • Hide

      Expect to apply test.pp manifest and not see "already initialized constant" message.

      Manual verification sufficient (recommend Functional Review left on this ticket).

      Show
      Expect to apply test.pp manifest and not see "already initialized constant" message. Manual verification sufficient (recommend Functional Review left on this ticket).
    • Windows
    • 1
    • Windows 2018-12-05
    • Customer Feedback
    • Needs Assessment

    Description

      There is an issue where a warning is thrown that a OLD_CHOCO_MESSAGE constant is already initialized when a "puppet apply" is used (does not occur within a "puppet agent" run). The warning is as per the output below:

      [root@master ~]# puppet apply -e 'notice("test")'
      /opt/puppetlabs/puppet/cache/lib/puppet_x/chocolatey/chocolatey_version.rb:8: warning: already initialized constant PuppetX::Chocolatey::ChocolateyVersion::OLD_CHOCO_MESSAGE
      /etc/puppetlabs/code/environments/production/modules/chocolatey/lib/puppet_x/chocolatey/chocolatey_version.rb:8: warning: previous definition of OLD_CHOCO_MESSAGE was here
      Notice: Scope(Class[main]): test
      Notice: Compiled catalog for master.paulreed.ca in environment production in 0.15 seconds
      Notice: Applied catalog in 0.92 seconds
      

      Attachments

        Activity

          People

            michael.lombardi Michael Lombardi
            james.pogran James Pogran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support