From f578243baa09ca64006b0adfefaad56e58113421 Mon Sep 17 00:00:00 2001 From: pauhull Date: Tue, 7 Nov 2023 10:25:19 +0100 Subject: [PATCH] fix(image): backup is suggested as type in update command --- internal/cmd/image/update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/image/update.go b/internal/cmd/image/update.go index 84d3c669..3d6391f9 100644 --- a/internal/cmd/image/update.go +++ b/internal/cmd/image/update.go @@ -22,7 +22,7 @@ var UpdateCmd = base.UpdateCmd{ DefineFlags: func(cmd *cobra.Command) { cmd.Flags().String("description", "", "Image description") cmd.Flags().String("type", "", "Image type") - cmd.RegisterFlagCompletionFunc("type", cmpl.SuggestCandidates("backup", "snapshot")) + cmd.RegisterFlagCompletionFunc("type", cmpl.SuggestCandidates("snapshot")) }, Update: func(ctx context.Context, client hcapi2.Client, cmd *cobra.Command, resource interface{}, flags map[string]pflag.Value) error { image := resource.(*hcloud.Image)