Skip to content

Commit

Permalink
Merge pull request #802 from thaJeztah/fix-yaml-generation
Browse files Browse the repository at this point in the history
Fix docs YAML generation setting "kubernetes" for "swarm"
  • Loading branch information
thaJeztah authored Jan 11, 2018
2 parents 4c7749e + 6be06a3 commit 41368a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/yaml/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func GenYamlCustom(cmd *cobra.Command, w io.Writer) error {
cliDoc.Kubernetes = true
}
if _, ok := curr.Annotations["swarm"]; ok && !cliDoc.Swarm {
cliDoc.Kubernetes = true
cliDoc.Swarm = true
}
}

Expand Down Expand Up @@ -208,7 +208,7 @@ func genFlagResult(flags *pflag.FlagSet) []cmdOption {
opt.Kubernetes = true
}
if _, ok := flag.Annotations["swarm"]; ok {
opt.Kubernetes = true
opt.Swarm = true
}

result = append(result, opt)
Expand Down

0 comments on commit 41368a8

Please sign in to comment.