Skip to content

Commit ad7d1ef

Browse files
authored
Merge pull request docker-archive#387 from andrewhsu/d
[18.01] Fix docs YAML generation setting "kubernetes" for "swarm"
2 parents 03596f5 + f0f54bf commit ad7d1ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/cli/docs/yaml/yaml.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func GenYamlCustom(cmd *cobra.Command, w io.Writer) error {
123123
cliDoc.Kubernetes = true
124124
}
125125
if _, ok := curr.Annotations["swarm"]; ok && !cliDoc.Swarm {
126-
cliDoc.Kubernetes = true
126+
cliDoc.Swarm = true
127127
}
128128
}
129129

@@ -208,7 +208,7 @@ func genFlagResult(flags *pflag.FlagSet) []cmdOption {
208208
opt.Kubernetes = true
209209
}
210210
if _, ok := flag.Annotations["swarm"]; ok {
211-
opt.Kubernetes = true
211+
opt.Swarm = true
212212
}
213213

214214
result = append(result, opt)

0 commit comments

Comments
 (0)