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

Enable deep-merge options to be passed in lookup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: HI 2.0.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Language 2015-03-18, Language 2015-04-01

      Description

      Options for deep-merge can only be set using the Hiera config. This configuration is then applied to all lookup calls. It must be possible to propagate these options in each call.

      A proposed solution is to allow the resolution_type parameter to be given as a Hash as well as a Symbol. When passing a Hash, Hiera config values for :merge_behavior and :deep_merge_options will be completely ignored. Instead the resolution_type will be :hash, the :merge_behavior will be :deeper and the :deep_merge_options will be those found in the given hash.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              thomas.hallgren Thomas Hallgren
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support