#NEWLINE# def _get_ironic_client( ) : #NEWLINE# #INDENT# 'return an Ironic client.' #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'os_username' : CONF . ironic . admin_username , #NEWLINE# 'os_password' : CONF . ironic . admin_password , #NEWLINE# 'os_auth_url' : CONF . ironic . admin_url , #NEWLINE# 'os_tenant_name' : CONF . ironic . admin_tenant_name , #NEWLINE# 'os_service_type' : 'baremetal' , #NEWLINE# 'os_endpoint_type' : 'public' , #NEWLINE# 'insecure' : 'true' , #NEWLINE# 'ironic_url' : CONF . ironic . api_endpoint , #NEWLINE# #UNINDENT# } #NEWLINE# icli = ironic_client . get_client ( CONF . ironic . api_version , ** kwargs ) #NEWLINE# return icli