fix(stack-creation): use numeric value for stack root folder name (#2000)

pull/2028/head^2
Anthony Lapenna 7 years ago committed by GitHub
parent f3925cb3ae
commit dbcc6a9624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save