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

puppetlabs-iis : warning already initialized constant

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • IIS 4.2.1
    • iis
    • None
    • Hide

      Should not emit warnings when running on Facter 3 or 2

      Show
      Should not emit warnings when running on Facter 3 or 2
    • Windows
    • Windows Kanban
    • Needs 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support