def client_from_auth(auth):
    session = sessions.cache().get_session(sessions.SESSION_TYPE_KEYSTONE)
    if CONF.use_identity_api_v3:
        client_class = keystone_client_v3.Client
    else:
        client_class = keystone_client.Client
    return client_class(session=session, auth=auth)
Returns the SQL that will be used in a query to define the tablespace.
dataset/ETHPy150Open openstack/sahara/sahara/utils/openstack/keystone.py/client_from_auth--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/db/backends/__init__.py/BaseDatabaseOperations.tablespace_sql