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 }