def oo_merge_dicts(first_dict, second_dict):
 if ((not isinstance(first_dict, dict)) or (not isinstance(second_dict, dict))):
  raise errors.AnsibleFilterError('|failed expects to merge two dicts')
 merged = first_dict.copy()
 merged.update(second_dict)
 return merged

def oo_merge_dicts ( first_dict , second_dict ) : if ( ( not isinstance ( first_dict , dict ) ) or ( not isinstance ( second_dict , dict ) ) ) : raise errors . AnsibleFilterError ( '|failed expects to merge two dicts' ) merged = first_dict . copy ( ) merged . update ( second_dict ) return merged
merge two dictionaries where second_dict values take precedence .