'Translates a list of dictionaries into a valid identityProviders config'

@staticmethod
def translate_idps(idps, api_version, openshift_version, deployment_type):

    idp_list = []
    if (not isinstance(idps, list)):
        raise errors.AnsibleFilterError('|failed    expects    to    filter    on    a    list    of    identity    providers')
    for idp in idps:
        if (not isinstance(idp, dict)):
            raise errors.AnsibleFilterError('|failed    identity    providers    must    be    a    list    of    dictionaries')
        cur_module = sys.modules[__name__]
        idp_class = getattr(cur_module, idp['kind'], None)
        idp_inst = (idp_class(api_version, idp) if (idp_class is not None) else IdentityProviderBase(api_version, idp))
        idp_inst.set_provider_items()
        idp_list.append(idp_inst)
    IdentityProviderBase.validate_idp_list(idp_list, openshift_version, deployment_type)
    return u(yaml.dump([idp.to_dict() for idp in idp_list], allow_unicode=True, default_flow_style=False, width=float('inf'), Dumper=AnsibleDumper))
