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

puppetlabs-iis : warning already initialized constant

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: IIS 4.2.1
    • Component/s: iis
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Acceptance Criteria:
      Hide

      Should not emit warnings when running on Facter 3 or 2

      Show
      Should not emit warnings when running on Facter 3 or 2
    • Epic Link:
    • Team:
      Windows
    • Sprint:
      Windows Kanban
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      e_Basic Info_
      Module Version: 4.2.0
      Puppet Version: 2017.3
      OS Name/Version: Windows 2012 R2

      While running puppet against a windows server with the puppetlabs-iis module installed facter provides the following warnings:

      C:/Source/puppetlabs-iis/iis/lib/facter/iis_version.rb:7: warning: already initialized constant ACCESS_TYPE
      C:/Source/puppetlabs-iis/iis/lib/facter/iis_version.rb:7: warning: previous definition of ACCESS_TYPE was here
      C:/Source/puppetlabs-iis/iis/lib/facter/iis_version.rb:8: warning: already initialized constant HKLM
      C:/Source/puppetlabs-iis/iis/lib/facter/iis_version.rb:8: warning: previous definition of HKLM was here
      C:/Source/puppetlabs-iis/iis/lib/facter/iis_version.rb:9: warning: already initialized constant REG_PATH
      C:/Source/puppetlabs-iis/iis/lib/facter/iis_version.rb:9: warning: previous definition of REG_PATH was here
      C:/Source/puppetlabs-iis/iis/lib/facter/iis_version.rb:10: warning: already initialized constant REG_KEY
      C:/Source/puppetlabs-iis/iis/lib/facter/iis_version.rb:10: warning: previous definition of REG_KEY was here

      Desired Behavior:
      I would assume there to be no warnings

      Actual Behavior:
      Warnings are provided for all variables being set in iis_version.rb

      Attached screenshot to issue

        Attachments

          Activity

            People

            Assignee:
            glenn.sarti Glenn Sarti
            Reporter:
            nmorell@kovarus.com Nathan Morell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support