mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-11 16:06:02 +08:00
feat: 处理格式转换问题
This commit is contained in:
parent
3d9ad16ae6
commit
e40618da1d
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue