mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
feat: 处理格式转换问题
This commit is contained in:
parent
3d9ad16ae6
commit
e40618da1d
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user