Details

    • Template:
      PUP Bug Template
    • Acceptance Criteria:
      Hide

      That include undef raises an error

      Show
      That include undef raises an error
    • Epic Link:
    • Sub-team:
    • Team:
      Platform Core
    • Sprint:
      Platform Core KANBAN
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Attempt to use an empty string or undef as the name of a class when calling {{include}} will now raise an error instead of appearing to be silently ignored.

      Description

      ❯ puppet apply -e "include undef"
      Notice: Compiled catalog for zhora.local in environment production in 0.04 seconds
      Notice: Applied catalog in 0.03 seconds
      

      Expected results: compilation failure

      Similarly, include '' doesn't fail, though include nosuchclass does.

      Example scenario: include $::some::class::tyypo (in my case, I accidentally grabbed the dollar sign while copying and pasting)

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                daniel.parks Daniel Parks
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: