Created
October 22, 2015 18:38
-
-
Save anonymous/745af2e469478d159286 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def __virtual__(): | |
""" | |
le_dict.__virtual__ | |
""" | |
return __virtualname__ | |
def merge(dest, upd): | |
""" | |
le_dict.merge | |
Allows deep merging of dicts so you don't accidentally overwrite stuff | |
""" | |
return dictupdate.update(dest, upd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% import_yaml 'formula/lol/defaults.yml' as default_settings %} | |
{% | |
do default_settings.lol.update( | |
salt['le_dict.merge'](default_settings.lol,flavor_map) | |
) | |
%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment