#NEWLINE# def _setup_senlin_client( self , api_ver , args ) : #NEWLINE# #INDENT# 'Create senlin client using given args.' #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'auth_plugin' : ( args . auth_plugin or 'password' ) , #NEWLINE# 'auth_url' : args . auth_url , #NEWLINE# 'project_name' : ( args . project_name or args . tenant_name ) , #NEWLINE# 'project_id' : ( args . project_id or args . tenant_id ) , #NEWLINE# 'domain_name' : args . domain_name , #NEWLINE# 'domain_id' : args . domain_id , #NEWLINE# 'project_domain_name' : args . project_domain_name , #NEWLINE# 'project_domain_id' : args . project_domain_id , #NEWLINE# 'user_domain_name' : args . user_domain_name , #NEWLINE# 'user_domain_id' : args . user_domain_id , #NEWLINE# 'username' : args . username , #NEWLINE# 'user_id' : args . user_id , #NEWLINE# 'password' : args . password , #NEWLINE# 'verify' : args . verify , #NEWLINE# 'token' : args . token , #NEWLINE# 'trust_id' : kwargs . trust_id , #NEWLINE# #UNINDENT# } #NEWLINE# return senlin_client . Client ( '1' , args . user_preferences , USER_AGENT , ** kwargs )