mirror of https://github.com/docker/cli.git
Update warning
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
0b5883f953
commit
f5073f81d2
|
@ -1,10 +1,9 @@
|
||||||
package command
|
package command
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Orchestrator type acts as an enum describing supported orchestrators.
|
// Orchestrator type acts as an enum describing supported orchestrators.
|
||||||
|
@ -45,7 +44,9 @@ func GetOrchestrator(orchestrator string) Orchestrator {
|
||||||
return o
|
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
|
// Nothing set, use default orchestrator
|
||||||
return defaultOrchestrator
|
return defaultOrchestrator
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue