pull/8549/head
Michael DeHaan 10 years ago
parent 56f9328f93
commit fb5a1403dd

@ -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

Loading…
Cancel
Save