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

The 'err' logging function cannot be called as a statement

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Done
    • None
    • PUP 3.8.1, PUP 4.1.0
    • None
    • None
    • Bug Fix

    Description

      In the language specification: https://github.com/puppetlabs/puppet-specifications/blob/master/language/expressions.md#function-calls

      under the "statement style" subhead, there's a list like:

      # logging
      debug
      info
      notice
      warning
      error
      

      Where "error" is wrong and don't exist. There are also several similar functions that aren't listed. cf. http://docs.puppetlabs.com/references/latest/configuration.html#loglevel

      We should allow the 'err' function to be called as a statement. The remaining logging functions are almost never used and should continue to require parentheses.

      risk: medium (qa manual validate only for now)
      probability: medium
      severity: low (work arounds exist)
      test layer: acceptance (unit test only confirms parser transform)

      Attachments

        Activity

          People

            Unassigned Unassigned
            henrik.lindberg Henrik Lindberg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support