|
@@ -1121,13 +1121,13 @@ func ContainerUpdateInfo(c *gin.Context) {
|
|
|
showENV := info.Config.Labels["show_env"]
|
|
|
showENVList := strings.Split(showENV, ",")
|
|
|
showENVMap := make(map[string]string)
|
|
|
- if len(showENVList) > 1 {
|
|
|
+ if len(showENVList) > 0 {
|
|
|
for _, name := range showENVList {
|
|
|
showENVMap[name] = "1"
|
|
|
}
|
|
|
}
|
|
|
for _, v := range info.Config.Env {
|
|
|
- if len(showENVList) > 1 {
|
|
|
+ if len(showENVList) > 0 {
|
|
|
if _, ok := showENVMap[strings.Split(v, "=")[0]]; ok {
|
|
|
temp := model.Env{
|
|
|
Name: strings.Split(v, "=")[0],
|