Skip to content

Commit

Permalink
Merge pull request #396 from myii/PR_fix-lookup-regression
Browse files Browse the repository at this point in the history
Fix `salt:lookup` regression
  • Loading branch information
aboe76 authored Jan 29, 2019
2 parents 1d9643b + feb0969 commit 698085f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions salt/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
{% import_yaml "salt/osfamilymap.yaml" as osfamilymap %}
{% import_yaml "salt/osmap.yaml" as osmap %}

{% set lookup = salt['pillar.get']('salt:lookup', default={}, merge=True) %}
{% do defaults.salt.update(lookup) %}

{# merge the osfamilymap #}
{% set osfamily = salt['grains.filter_by'](osfamilymap, grain='os_family') or{} %}
{% do salt['defaults.merge'](defaults['salt'], osfamily) %}
Expand All @@ -17,6 +14,10 @@
{% set osmap = salt['grains.filter_by'](osmap, grain='os') or{} %}
{% do salt['defaults.merge'](defaults['salt'], osmap) %}

{# merge the lookup #}
{% set lookup = salt['pillar.get']('salt:lookup', default={}, merge=True) %}
{% do salt['defaults.merge'](defaults['salt'], lookup) %}

{## Merge in salt pillar ##}
{% set salt_settings = salt['pillar.get']('salt', default=defaults['salt'], merge=True) %}

Expand Down

0 comments on commit 698085f

Please sign in to comment.