Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10890

lookup fails if module lookup_options are empty

    XMLWordPrintable

Details

    • Coremunity
    • Coremunity Kanban
    • Needs Assessment
    • Bug Fix
    • Hide
      If lookup_options were defined at the global or environment layer and a module defined an empty hash of lookup_options, then compilation would fail. Now the empty hash is ignored.
      Show
      If lookup_options were defined at the global or environment layer and a module defined an empty hash of lookup_options, then compilation would fail. Now the empty hash is ignored.
    • Needs Assessment

    Description

      Doing a test on a module with hiera that has an empty `lookup_options:` will result in errors during unit tests like 

       

      1. — Caused by: —
      2. NoMethodError:
      3. undefined method `each_pair' for nil:NilClass
      4. /opt/puppetlabs/pdk/private/puppet/ruby/2.4.0/gems/puppet-5.5.21/lib/puppet/pops/lookup/lookup_adapter.rb:292:in `validate_lookup_options'

      Attachments

        Activity

          People

            josh Josh Cooper
            cdenneen Chris Denneen
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support