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

puppetlabs-chocolatey : already initialized constant warning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: chocolatey
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Acceptance Criteria:
      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).
    • Team:
      Windows
    • Story Points:
      1
    • Sprint:
      Windows 2018-12-05
    • Method Found:
      Customer Feedback
    • QA Risk Assessment:
      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support