File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -82,15 +82,13 @@ fn import_private_key() {
8282 let private_key = rpassword:: prompt_password ( "Private key: " ) . unwrap ( ) ;
8383 let group = rprompt:: prompt_reply ( "Group: " ) . unwrap ( ) ;
8484 let name = rprompt:: prompt_reply ( "Name: " ) . unwrap ( ) ;
85- let comment = rprompt:: prompt_reply ( "Note : " ) . unwrap ( ) ;
85+ let profile = rprompt:: prompt_reply ( "Profile : " ) . unwrap ( ) ;
8686 if let Ok ( pair) = EcKeyPair :: from_input ( & private_key) {
8787 let public_key = pair. get_pk_hex ( ) ;
8888 let mut key_pair = KeyPair :: new ( & public_key, & private_key, & None ) ;
8989 key_pair. group = Some ( group) ;
9090 key_pair. name = Some ( name) ;
91- if !comment. is_empty ( ) {
92- key_pair. comment = Some ( comment) ;
93- }
91+ key_pair. profile = Some ( profile) ;
9492 write_key_pair ( & key_pair) . unwrap ( ) ;
9593 println ! (
9694 "{}" ,
You can’t perform that action at this time.
0 commit comments