#NEWLINE# def update_profile( manager , name , fields ) : #NEWLINE# #INDENT# password = fields . pop ( 'password' ) #NEWLINE# remove_password = fields . pop ( 'remove_password' ) #NEWLINE# if fields . pop ( 'ask_password' ) : #NEWLINE# #INDENT# password = click . prompt ( 'Password' , hide_input = True ) #NEWLINE# #UNINDENT# rsa_token = fields . pop ( 'rsa_token' ) #NEWLINE# remove_rsa_token = fields . pop ( 'remove_rsa_token' ) #NEWLINE# manager . set_profile ( name , ** fields ) #NEWLINE# manager . save ( ) #NEWLINE# if ( password is not None ) : #NEWLINE# #INDENT# manager . set_keychain_password ( name , url = fields [ 'url' ] , user = fields [ 'user' ] , password = password ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if remove_password : #NEWLINE# #INDENT# manager . remove_keychain_password ( name ) #NEWLINE# #UNINDENT# #UNINDENT# if ( rsa_token is not None ) : #NEWLINE# #INDENT# manager . import_rsa_token ( name , fields [ 'url' ] , rsa_token ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if remove_rsa_token : #NEWLINE# #INDENT# manager . remove_rsa_token ( name )