1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

feat: 处理格式转换问题

This commit is contained in:
zhengkunwang223 2023-03-10 10:32:06 +08:00 committed by zhengkunwang223
parent 3d9ad16ae6
commit e40618da1d

View File

@ -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
}