This commit is contained in:
Michael DeHaan 2014-08-11 12:22:55 -04:00
commit fb5a1403dd

View file

@ -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) _found, results = _load_vars_from_path(path, results, vault_password=vault_password)
return results 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