1
0
mirror of https://github.com/rancher/os.git synced 2025-09-05 08:42:38 +00:00

Add details to 'ros console list'

This commit is contained in:
Josh Curl
2016-06-28 11:18:26 -07:00
parent b22c075b95
commit 8f8dec51ea
3 changed files with 25 additions and 7 deletions

View File

@@ -29,6 +29,10 @@ func Main() {
}
}
if err = config.Set("rancher.console", newConsole); err != nil {
log.Errorf("Failed to update 'rancher.console': %v", err)
}
if err = project.Up(context.Background(), options.Up{
Log: true,
}, "console"); err != nil {
@@ -38,8 +42,4 @@ func Main() {
if err = project.Restart(context.Background(), 10, "docker"); err != nil {
log.Errorf("Failed to restart Docker: %v", err)
}
if err = config.Set("rancher.console", newConsole); err != nil {
log.Errorf("Failed to update 'rancher.console': %v", err)
}
}