Uploaded image for project: 'Hiera'
  1. Hiera
  2. HI-115

hiera recursive guard triggered when there is no recursion

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: HI 1.3.0
    • Fix Version/s: HI 1.3.2
    • Component/s: None
    • Labels:
    • Template:
    • Story Points:
      1
    • Sprint:
      Week 2014-2-12 to 2014-2-19

      Description

      The recursive guard is activated if the same variable is referenced twice. For example:

      global.yaml
      a: '%{b} - %{b}'
      

      hiera a

      /usr/lib/ruby/vendor_ruby/hiera/recursive_guard.rb:13:in `check': Detected in [b] (Hiera::InterpolationLoop)
      

      Also the error message is not very informative.

        Attachments

          Issue Links

            Activity

            Hide
            chuck Charlie Sharpsteen added a comment -

            According to git-bisect, this recursed in 1461832. This was part of pull request 152 which added support for recursive Hiera lookups.

            Unfortunately, this appears to have introduced a regression where it is no longer possible to interpolate the same variable twice in a Hiera string.

            Show
            chuck Charlie Sharpsteen added a comment - According to git-bisect, this recursed in 1461832 . This was part of pull request 152 which added support for recursive Hiera lookups. Unfortunately, this appears to have introduced a regression where it is no longer possible to interpolate the same variable twice in a Hiera string.
            Hide
            chuck Charlie Sharpsteen added a comment -

            Pull request submitted.

            Show
            chuck Charlie Sharpsteen added a comment - Pull request submitted.
            Hide
            andy Andrew Parker added a comment -

            Merged into stable in 7175bb

            Show
            andy Andrew Parker added a comment - Merged into stable in 7175bb
            Hide
            andy Andrew Parker added a comment -

            Verified with a simple yaml data file that interpolated a hiera function call twice.

            Show
            andy Andrew Parker added a comment - Verified with a simple yaml data file that interpolated a hiera function call twice.
            Hide
            melissa Melissa Stone added a comment -

            Released in Hiera 1.3.2-rc2

            Show
            melissa Melissa Stone added a comment - Released in Hiera 1.3.2-rc2

              People

              • Assignee:
                andy Andrew Parker
                Reporter:
                redmine.exporter redmine.exporter
              • Votes:
                6 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support