'validates a list of idps'

@staticmethod
def validate_idp_list(idp_list, openshift_version, deployment_type):

    login_providers = [x.name for x in idp_list if x.login]
    multiple_logins_unsupported = False
    if (len(login_providers) > 1):
        if (deployment_type in ['enterprise', 'online', 'atomic-enterprise', 'openshift-enterprise']):
            if (LooseVersion(openshift_version) < LooseVersion('3.2')):
                multiple_logins_unsupported = True
        if (deployment_type in ['origin']):
            if (LooseVersion(openshift_version) < LooseVersion('1.2')):
                multiple_logins_unsupported = True
    if multiple_logins_unsupported:
        raise errors.AnsibleFilterError('|failed    multiple    providers    are    not    allowed    for    login.    login    providers:    {0}'.format(',    '.join(login_providers)))
    names = [x.name for x in idp_list]
    if (len(set(names)) != len(names)):
        raise errors.AnsibleFilterError('|failed    more    than    one    provider    configured    with    the    same    name')
    for idp in idp_list:
        idp.validate()
