Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3734

cf-promises should not care about trailing comma in argument list

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 3.19.0
    • Fix Version/s: 3.19.0
    • Component/s: cf-promises
    • Labels:
      None
    • Story Points:
      0

      Description

      cf-promises should not care about trailing comma in argument list

      test.cf

      bundle agent test(a, b, c,)
      {
      }
      
       $ /var/cfengine/bin/cf-promises ~/test.cf 
      /root/test.cf:2:28: error: syntax error
      bundle agent test(a, b, c,)
                                 ^
      /root/test.cf:2:28: error: Expected identifier, wrong input ')'
      bundle agent test(a, b, c,)
                                 ^
      /root/test.cf:4:2: error: Error in bundle parameter list, expected ')', wrong input '}'
      }
       ^
         error: There are syntax errors in policy files
      

       

       

        Attachments

          Activity

            People

            Assignee:
            larsewi Lars Erik Wik
            Reporter:
            larsewi Lars Erik Wik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: