Skip to content

Commit 15de334

Browse files
dtrudgpedroalvesbatista
authored andcommitted
Do not show keystore URI in newpair confirmation message
The real URI to which we are pushing is computed at a lower level, in remote endpoint handling, than we have access to in the CLI newpair code. At present it is only correct for the default keystore. Remove the URI from the message, until we can address the issue by having the CLI code able to know the true correct URI in all cases. Fixes #4 See also #23
1 parent f03a7a7 commit 15de334

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/internal/cli/key_newpair.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func runNewPairCmd(cmd *cobra.Command, args []string) {
110110
fmt.Printf("done\n")
111111

112112
if !opts.PushToKeyStore {
113-
fmt.Printf("NOT pushing newly created key to: %s\n", keyServerURI)
113+
fmt.Println("NOT pushing newly created key to keystore")
114114
return
115115
}
116116

@@ -123,7 +123,7 @@ func runNewPairCmd(cmd *cobra.Command, args []string) {
123123
if err := sypgp.PushPubkey(ctx, key, co...); err != nil {
124124
fmt.Printf("Failed to push newly created key to keystore: %s\n", err)
125125
} else {
126-
fmt.Printf("Key successfully pushed to: %s\n", keyServerURI)
126+
fmt.Println("Key successfully pushed to keystore")
127127
}
128128
}
129129

0 commit comments

Comments
 (0)