def project_id_from_auth(auth):
    return auth.get_project_id(
        sessions.cache().get_session(sessions.SESSION_TYPE_KEYSTONE))
Return the project id associated with an auth plugin.
dataset/ETHPy150Open openstack/sahara/sahara/utils/openstack/keystone.py/project_id_from_auth