def add_tenant_user_role(request, project=None, user=None, role=None,
                         group=None, domain=None):
    """Adds a role for a user on a tenant."""
    manager = keystoneclient(request, admin=True).roles
    if 3 < VERSIONS.active:
        return manager.add_user_role(user, role, project)
    else:
        return manager.grant(role, user=user, project=project,
                             group=group, domain=domain)
dataset/ETHPy150Open openstack/horizon/openstack_dashboard/api/keystone.py/add_tenant_user_role/swapped operands of `<`