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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user