Skip to content

Commit 924dd47

Browse files
committed
cli/command/secret: fix completion to complete names, not IDs
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent d67dad3 commit 924dd47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/command/secret/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func completeNames(dockerCLI completion.APIClientProvider) cobra.CompletionFunc
4444
}
4545
var names []string
4646
for _, secret := range list {
47-
names = append(names, secret.ID)
47+
names = append(names, secret.Spec.Name)
4848
}
4949
return names, cobra.ShellCompDirectiveNoFileComp
5050
}

0 commit comments

Comments
 (0)