mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
Fix merge conflict: env-var
This commit is contained in:
parent
cc43dbc84e
commit
b591b46fba
@ -8,6 +8,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"io"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -133,9 +134,7 @@ func (dc *Docker) Inspect() (models.Meta, error) {
|
||||
newMeta["ports"] = PortsFormat(insp.NetworkSettings.Ports)
|
||||
newMeta["created"] = insp.Created.Format("Mon Jan 2 15:04:05 2006")
|
||||
newMeta["health"] = insp.State.Health.Status
|
||||
for _, env := range insp.Config.Env {
|
||||
newMeta["[ENV-VAR]"] = env
|
||||
}
|
||||
newMeta["[ENV-VAR]"] = strings.Join(insp.Config.Env, ";")
|
||||
newMeta["state"] = insp.State.Status
|
||||
|
||||
return newMeta, nil
|
||||
|
Loading…
Reference in New Issue
Block a user