def _keystone_client(context, version=(3, 0)):
 auth_plugin = identity.Token(auth_url=CONF.keystone_authtoken.auth_uri, token=context.auth_token, project_id=context.project_id)
 client_session = ka_loading.session.Session().load_from_options(auth=auth_plugin, insecure=CONF.keystone_authtoken.insecure, cacert=CONF.keystone_authtoken.cafile, key=CONF.keystone_authtoken.keyfile, cert=CONF.keystone_authtoken.certfile)
 return client.Client(auth_url=CONF.keystone_authtoken.auth_uri, session=client_session, version=version)

def _keystone_client ( context , version = ( 3 , 0 ) ) : auth_plugin = identity . Token ( auth_url = CONF . keystone_authtoken . auth_uri , token = context . auth_token , project_id = context . project_id ) client_session = ka_loading . session . Session ( ) . load_from_options ( auth = auth_plugin , insecure = CONF . keystone_authtoken . insecure , cacert = CONF . keystone_authtoken . cafile , key = CONF . keystone_authtoken . keyfile , cert = CONF . keystone_authtoken . certfile ) return client . Client ( auth_url = CONF . keystone_authtoken . auth_uri , session = client_session , version = version )
creates and returns an instance of a generic keystone client .