Update warning

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2017-12-05 11:13:38 +01:00 committed by Silvin Lubecki
parent 0b5883f953
commit f5073f81d2
1 changed files with 4 additions and 3 deletions

View File

@ -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
}