From dbcc6a96245cbad98d1cce425f745f06eaeb8168 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Mon, 25 Jun 2018 14:48:28 +0300 Subject: [PATCH] fix(stack-creation): use numeric value for stack root folder name (#2000) --- api/http/handler/stacks/create_compose_stack.go | 2 +- api/http/handler/stacks/create_swarm_stack.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/http/handler/stacks/create_compose_stack.go b/api/http/handler/stacks/create_compose_stack.go index 26e1c6217..748b3c155 100644 --- a/api/http/handler/stacks/create_compose_stack.go +++ b/api/http/handler/stacks/create_compose_stack.go @@ -137,7 +137,7 @@ func (handler *Handler) createComposeStackFromGitRepository(w http.ResponseWrite EntryPoint: payload.ComposeFilePathInRepository, } - projectPath := handler.FileService.GetStackProjectPath(string(stack.ID)) + projectPath := handler.FileService.GetStackProjectPath(strconv.Itoa(int(stack.ID))) stack.ProjectPath = projectPath gitCloneParams := &cloneRepositoryParameters{ diff --git a/api/http/handler/stacks/create_swarm_stack.go b/api/http/handler/stacks/create_swarm_stack.go index 6fee54221..05084a99d 100644 --- a/api/http/handler/stacks/create_swarm_stack.go +++ b/api/http/handler/stacks/create_swarm_stack.go @@ -151,7 +151,7 @@ func (handler *Handler) createSwarmStackFromGitRepository(w http.ResponseWriter, Env: payload.Env, } - projectPath := handler.FileService.GetStackProjectPath(string(stack.ID)) + projectPath := handler.FileService.GetStackProjectPath(strconv.Itoa(int(stack.ID))) stack.ProjectPath = projectPath gitCloneParams := &cloneRepositoryParameters{