From f5073f81d2cbad8146688437abce4df0447f94c4 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Tue, 5 Dec 2017 11:13:38 +0100 Subject: [PATCH] Update warning Signed-off-by: Vincent Demeester --- cli/command/orchestrator.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cli/command/orchestrator.go b/cli/command/orchestrator.go index 9fa9c713d3..4438ef5cc6 100644 --- a/cli/command/orchestrator.go +++ b/cli/command/orchestrator.go @@ -1,10 +1,9 @@ package command import ( + "fmt" "os" "strings" - - "github.com/sirupsen/logrus" ) // Orchestrator type acts as an enum describing supported orchestrators. @@ -45,7 +44,9 @@ func GetOrchestrator(orchestrator string) Orchestrator { return o } - logrus.Infof("Specified orchestrator %q is invalid. Please use either kubernetes or swarm", orchestrator) + if orchestrator != "" { + fmt.Fprintf(os.Stderr, "Specified orchestrator %q is invalid. Please use either kubernetes or swarm\n", orchestrator) + } // Nothing set, use default orchestrator return defaultOrchestrator }