Skip to content

Commit 5ab12e6

Browse files
authored
Merge pull request #6365 from thaJeztah/fix_version_annotations
cli/command/service: fix API annotations for generic resource flags
2 parents 104b076 + dcc3d25 commit 5ab12e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/command/service/update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ func newUpdateCommand(dockerCLI command.Cli) *cobra.Command {
112112

113113
// Add needs parsing, Remove only needs the key
114114
flags.Var(newListOptsVar(), flagGenericResourcesRemove, "Remove a Generic resource")
115-
flags.SetAnnotation(flagHostAdd, "version", []string{"1.32"})
115+
flags.SetAnnotation(flagGenericResourcesRemove, "version", []string{"1.32"})
116116
flags.Var(newListOptsVarWithValidator(ValidateSingleGenericResource), flagGenericResourcesAdd, "Add a Generic resource")
117-
flags.SetAnnotation(flagHostAdd, "version", []string{"1.32"})
117+
flags.SetAnnotation(flagGenericResourcesAdd, "version", []string{"1.32"})
118118

119119
// TODO(thaJeztah): add completion for capabilities, stop-signal (currently non-exported in container package)
120120
// _ = cmd.RegisterFlagCompletionFunc(flagCapAdd, completeLinuxCapabilityNames)

0 commit comments

Comments
 (0)