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

regression: epp parameter with default expression = undef does not take

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Puppet Developer Experience
    • Story Points:
      1
    • Sprint:
      PDE 2017-04-19, PDE 2017-05-03
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      A default value expression for an EPP parameter of {{undef}} did not take effect and the parameter was instead resolved against an outer scope.
      This is now fixed.
      Show
      A default value expression for an EPP parameter of {{undef}} did not take effect and the parameter was instead resolved against an outer scope. This is now fixed.
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      covered by unit tests

      Description

      with puppet 4.8.3 and older versions the following code generated an empty notice:

      notice(inline_epp('<%- | Optional[String] $path = undef, | -%><%= $path %>', {}))
      

      with 4.10.0 and at least 4.9.4 the value of the fact 'path' is returned.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            vicinus Reinhard Vicinus
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support