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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: PUP 3.8.1, PUP 4.1.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Epic Link:
    • Story Points:
      1
    • Sprint:
      Language 2015-04-29
    • Release Notes:
      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

            jsd-sla-details-panel

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: