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

incorrect compiler error while

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • None
    • None
    • Compiler
    • None
    • Froyo
    • Needs Assessment
    • Needs Assessment

    Description

      This manifest should not compile due to the site keyword, but instead it warns about class. This is super confusing to the end user.

      ✔ ~ (2.5.1@puppet)
      12:39 $ cat init.pp
      class site inherits ::site::params {
      }
      ✔ ~ (2.5.1@puppet)
      12:37 $ puppet parser validate init.pp
      Error: Could not parse for environment production: 'class' keyword not allowed at this location (file: /Users/ben/init.pp, line: 1, column: 1)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ben.ford Ben Ford
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support