#NEWLINE# def _get_solum_client( ) : #NEWLINE# #INDENT# args = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# args [ 'os_username' ] = os . getenv ( 'OS_USERNAME' , '' ) #NEWLINE# args [ 'os_password' ] = os . getenv ( 'OS_PASSWORD' , '' ) #NEWLINE# args [ 'os_tenant_name' ] = os . getenv ( 'OS_TENANT_NAME' , '' ) #NEWLINE# args [ 'os_auth_url' ] = os . getenv ( 'OS_AUTH_URL' , '' ) #NEWLINE# args [ 'solum_url' ] = os . getenv ( 'SOLUM_URL' , '' ) #NEWLINE# try : #NEWLINE# #INDENT# client = solum_client . get_client ( SOLUM_API_VERSION , ** args ) #NEWLINE# return args #NEWLINE# #UNINDENT# except Exception as ex : #NEWLINE# #INDENT# print ( ( 'Error in getting Solum client: %s' % ex ) ) #NEWLINE# exit ( 1 )