From e40618da1dd70a89793065df077c0282eeb09416 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Fri, 10 Mar 2023 10:32:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=84=E7=90=86=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/app_utils.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/app/service/app_utils.go b/backend/app/service/app_utils.go index 7c3307b6a..9d8ababa6 100644 --- a/backend/app/service/app_utils.go +++ b/backend/app/service/app_utils.go @@ -219,9 +219,11 @@ func updateInstall(installId uint, detailId uint) error { func getContainerNames(install model.AppInstall) ([]string, error) { composeMap := install.DockerCompose - envMap := make(map[string]string) + envMap := make(map[string]interface{}) _ = json.Unmarshal([]byte(install.Env), &envMap) - project, err := compose.GetComposeProject([]byte(composeMap), envMap) + newEnvMap := make(map[string]string, len(envMap)) + handleMap(envMap, newEnvMap) + project, err := compose.GetComposeProject([]byte(composeMap), newEnvMap) if err != nil { return nil, err }