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

Lookup recursion guard should use different namespace for scope and normal lookups

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 4.8.1
    • Fix Version/s: PUP 4.9.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      It should be possible to lookup this yaml data:

      domain: "-- %{domain} --"
      

      and get a result like "-- example.com --"

      Show
      It should be possible to lookup this yaml data: domain: "-- %{domain} --" and get a result like "-- example.com --"
    • Team:
      Puppet Developer Experience
    • Story Points:
      1
    • Sprint:
      PDE 2016-12-14, PDE 2017-01-11
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      It was impossible to interpolate a variable if that variable name was the same as the key being looked up.
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      covered by unit tests

      Description

      A lookup of a key that results in a value that contains an interpolation expression with the same key (this time referring to the global scope) should not result in a recursion error. The lookup namespace is different from the global scope namespace.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              thomas.hallgren Thomas Hallgren
              QA Contact:
              Eric Thompson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support