mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07:00
Merge
This commit is contained in:
parent
56f9328f93
commit
fb5a1403dd
1 changed files with 28 additions and 22 deletions
|
@ -1430,3 +1430,9 @@ def _load_vars_from_folder(folder_path, results, vault_password=None):
|
|||
_found, results = _load_vars_from_path(path, results, vault_password=vault_password)
|
||||
return results
|
||||
|
||||
def update_hash(hash, key, new_value):
|
||||
''' used to avoid nested .update calls on the parent '''
|
||||
|
||||
value = hash.get(key, {})
|
||||
value.update(new_value)
|
||||
hash[key] = value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue