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

multi-resource references do not accept trailing commas

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 4.0.0
    • Fix Version/s: PUP 4.3.0
    • Component/s: Language
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Language 2015-11-11
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      A trailing comma was not accepted in expressions like Type[title,]

      Description

      I generally expect that puppet will allow trailing commas when enumerating a list. This could be considered either a bug or a feature request but I found the result from the following example surprising.

      notify { "a": }
      notify { "b": }
      notify { "c": }
       
      Notify[
        'b',
        'c',
      ] {
        require => Notify['a']
      }
      

      $ bundle exec puppet --version
      4.0.0
      $ bundle exec puppet apply test.pp
      Error: Could not parse for environment production: Syntax error at ']' at /home/jhoblitt/tmp/test.pp:8:1 on node leo
      Error: Could not parse for environment production: Syntax error at ']' at /home/jhoblitt/tmp/test.pp:8:1 on node leo
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jhoblitt Joshua Hoblitt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support