#NEWLINE# def novaclient( request ) : #NEWLINE# #INDENT# insecure = getattr ( settings , 'OPENSTACK_SSL_NO_VERIFY' , False ) #NEWLINE# cacert = getattr ( settings , 'OPENSTACK_SSL_CACERT' , None ) #NEWLINE# LOG . debug ( ( 'novaclient connection created using token "%s" and url "%s"' % ( request . user . token . id , base . url_for ( cacert , 'compute' ) ) ) ) #NEWLINE# c = nova_client . Client ( request . user . username , request . user . token . id , project_id = request . user . tenant_id , auth_url = base . url_for ( request , 'compute' ) , insecure = insecure , cacert = cacert , http_log_debug = settings . DEBUG ) #NEWLINE# c . client . auth_token = request . user . token . id #NEWLINE# c . client . management_url = base . url_for ( request , 'compute' ) #NEWLINE# return c