1
0
mirror of https://github.com/rancher/os.git synced 2025-09-03 07:44:21 +00:00

Support switching to the default console

This commit is contained in:
Josh Curl
2016-06-12 12:02:07 -07:00
parent 7f7d8765ca
commit 3153c28e86
8 changed files with 30 additions and 39 deletions

View File

@@ -18,13 +18,15 @@ func Main() {
cfg := config.LoadConfig()
project, err := compose.GetProject(cfg, true)
project, err := compose.GetProject(cfg, true, false)
if err != nil {
log.Fatal(err)
}
if err = compose.LoadService(project, cfg, true, newConsole); err != nil {
log.Fatal(err)
if newConsole != "default" {
if err = compose.LoadService(project, cfg, true, newConsole); err != nil {
log.Fatal(err)
}
}
if err = project.Up(context.Background(), options.Up{