mirror of https://github.com/portainer/portainer
fix(stack-creation): use numeric value for stack root folder name (#2000)
parent
f3925cb3ae
commit
dbcc6a9624
|
@ -137,7 +137,7 @@ func (handler *Handler) createComposeStackFromGitRepository(w http.ResponseWrite
|
||||||
EntryPoint: payload.ComposeFilePathInRepository,
|
EntryPoint: payload.ComposeFilePathInRepository,
|
||||||
}
|
}
|
||||||
|
|
||||||
projectPath := handler.FileService.GetStackProjectPath(string(stack.ID))
|
projectPath := handler.FileService.GetStackProjectPath(strconv.Itoa(int(stack.ID)))
|
||||||
stack.ProjectPath = projectPath
|
stack.ProjectPath = projectPath
|
||||||
|
|
||||||
gitCloneParams := &cloneRepositoryParameters{
|
gitCloneParams := &cloneRepositoryParameters{
|
||||||
|
|
|
@ -151,7 +151,7 @@ func (handler *Handler) createSwarmStackFromGitRepository(w http.ResponseWriter,
|
||||||
Env: payload.Env,
|
Env: payload.Env,
|
||||||
}
|
}
|
||||||
|
|
||||||
projectPath := handler.FileService.GetStackProjectPath(string(stack.ID))
|
projectPath := handler.FileService.GetStackProjectPath(strconv.Itoa(int(stack.ID)))
|
||||||
stack.ProjectPath = projectPath
|
stack.ProjectPath = projectPath
|
||||||
|
|
||||||
gitCloneParams := &cloneRepositoryParameters{
|
gitCloneParams := &cloneRepositoryParameters{
|
||||||
|
|
Loading…
Reference in New Issue