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

incorrect compiler error while

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Compiler
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Sub-team:
    • Team:
      Froyo
    • Method Found:
      Needs Assessment
    • QA Risk 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

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

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support