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

Error message for declaring resource without title is confusing

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.3.2
    • Component/s: Language
    • Labels:
      None
    • Template:
    • Story Points:
      2
    • Sprint:
      Language 2016-01-13
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Error message for "resource without title" has been improved and is now specifically pointing this out instead of presenting a generic message.

      Description

      When someone makes the mistake of doing something like this

      exec {
        command => 'do something',
      }
      

      Puppet will complain with:

       A Host Class Definition can not end with a value-producing expression without other effect
      

      This error message is incredibly confusing to anyone without a deeper understanding of the language. What "host class definition"?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                qa qa
                Reporter:
                daenney Daniele Sluijters
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support