mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +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) {
|
func getContainerNames(install model.AppInstall) ([]string, error) {
|
||||||
composeMap := install.DockerCompose
|
composeMap := install.DockerCompose
|
||||||
envMap := make(map[string]string)
|
envMap := make(map[string]interface{})
|
||||||
_ = json.Unmarshal([]byte(install.Env), &envMap)
|
_ = 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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user