#NEWLINE# def _create_password_auth( self , username = None , password = None , url = None ) : #NEWLINE# #INDENT# if ( not username ) : #NEWLINE# #INDENT# username = username . data . user . name #NEWLINE# #UNINDENT# if ( not password ) : #NEWLINE# #INDENT# password = self . data . user . password #NEWLINE# #UNINDENT# if ( not url ) : #NEWLINE# #INDENT# url = settings . OPENSTACK_KEYSTONE_URL #NEWLINE# #UNINDENT# return v3_auth . Password ( auth_url = url , password = password , username = username , user_domain_name = DEFAULT_DOMAIN , unscoped = True )