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

parse_string doesnt interpolate %{key} with Puppet 4.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.3.2
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Language 2015-12-16
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      Interpolation of values stemming from keys where the value was expected to be missing and instead supplied from defaults stopped working in Puppet 4.x due to the distinction it makes between empty string and undefined. This problem occurred for lookups of missing variables in puppet.
      Show
      Interpolation of values stemming from keys where the value was expected to be missing and instead supplied from defaults stopped working in Puppet 4.x due to the distinction it makes between empty string and undefined. This problem occurred for lookups of missing variables in puppet.

      Description

      Several backends need to pass %{key} to `Backend.parse_string` in order for it to get interpolated, hiera-http and hiera-mysql are both examples of this. In Puppet 4.0 the %{key} does not get interpolated (regardless of the hiera version) but running hiera from the command line does work. So I'm unsure if this is a PUPPET or HIERA issue, but I'm filing it here to start with.

      Please see https://github.com/crayfishx/hiera-http/issues/38 for a detailed description

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                john.duarte John Duarte
                Reporter:
                crayfishx Craig Dunn
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support