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

Compiler raises a cryptic error when no node mappings are defined on an application declaration

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • PUP 4.2.2
    • PUP 4.3.0
    • None
    • None
    • Not Needed
    • Part of new feature "application management"

    Description

      According to the application spec, providing node mappings on the declaration of an application is optional. Currently, the following error will be raised during node catalog compilation if no value for `nodes` is given. Compilation of the environment is not affected.

      undefined method `value' for nil:NilClass on node master.vm
      

      Reproducing

      puppet apply --app_management <<MANIFEST
      application app {
      }
       
      site {
        app { anapp:
        }
      }
      MANIFEST
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jordan Jordan Olshevski
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support