Set a global orchestrator flag

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 5d375b348a
Component: cli
This commit is contained in:
Vincent Demeester
2017-12-20 19:06:15 +01:00
committed by Silvin Lubecki
parent d7b5fca8a7
commit effda473ed
10 changed files with 26 additions and 18 deletions

View File

@ -18,7 +18,7 @@ func newListCommand(dockerCli command.Cli) *cobra.Command {
Short: "List stacks",
Args: cli.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
if dockerCli.ClientInfo().HasKubernetes {
if dockerCli.ClientInfo().HasKubernetes() {
kli, err := kubernetes.WrapCli(dockerCli, cmd)
if err != nil {
return err