Skip to content

Commit 0220200

Browse files
author
Gustavo Bazan
authored
CLOUDP-228453: [Atlas CLI] Odd prompts when deleting backup schedule (#2604)
1 parent ddfc08e commit 0220200

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/cli/atlas/backup/schedule/delete.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ func DeleteBuilder() *cobra.Command {
6666
Example: fmt.Sprintf(` # Remove all backup schedules for the cluster named Cluster0:
6767
%s backup schedule delete Cluster0`, cli.ExampleAtlasEntryPoint()),
6868
PreRunE: func(cmd *cobra.Command, args []string) error {
69-
if err := opts.PreRunE(opts.ValidateProjectID, opts.initStore(cmd.Context())); err != nil {
70-
return err
71-
}
7269
opts.Entry = args[0]
73-
return opts.Prompt()
70+
return opts.PreRunE(
71+
opts.ValidateProjectID,
72+
opts.initStore(cmd.Context()),
73+
)
7474
},
7575
RunE: func(cmd *cobra.Command, args []string) error {
76-
if err := opts.PromptWithMessage(fmt.Sprintf(confirmationMessage, opts.Entry)); err != nil {
76+
if err := opts.PromptWithMessage(confirmationMessage); err != nil {
7777
return err
7878
}
7979
return opts.Run()

0 commit comments

Comments
 (0)