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

Poor Syntax Error for Missing Closing Double Quote

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • PUP 4.3.0
    • None
    • None

    Description

      I wrote the following code against Puppet 4.3.0

      $console_hostname = parseyaml(file("${::settings::confdir}/classifier.yaml))
       
      notify { "${console_hostname['server']}" : }
      

      And I receive the following syntax error:

      [root@puppet-master-ankeny modules]# puppet apply /tmp/classifier.pp
      Error: Could not parse for environment production: Syntax error at '' at /tmp/classifier.pp:4:11 on node puppet-master-ankeny
      [root@puppet-master-ankeny modules]# puppet --version
      4.3.0
      

      I would hope to receive something more specific to the fact that I missed a closing double quote... however, I could understand if that's not actually possible but wanted to bring it up for discussion.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nick.walker Nick Walker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support