From 8dcc5e4adb31c9ba378cf4dca9a1d0f5a06e626f Mon Sep 17 00:00:00 2001 From: matias-portainer <104775949+matias-portainer@users.noreply.github.com> Date: Tue, 6 Dec 2022 10:26:18 -0300 Subject: [PATCH] fix(edgestacks): fix repository edge stack creation EE-4732 (#8160) --- api/http/handler/edgestacks/edgestack_create.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/http/handler/edgestacks/edgestack_create.go b/api/http/handler/edgestacks/edgestack_create.go index c2f9414ff..13a498033 100644 --- a/api/http/handler/edgestacks/edgestack_create.go +++ b/api/http/handler/edgestacks/edgestack_create.go @@ -240,8 +240,9 @@ func (handler *Handler) createSwarmStackFromGitRepository(r *http.Request, dryru } repoConfig := gittypes.RepoConfig{ - URL: payload.RepositoryURL, - ReferenceName: payload.RepositoryReferenceName, + URL: payload.RepositoryURL, + ReferenceName: payload.RepositoryReferenceName, + ConfigFilePath: payload.FilePathInRepository, } if payload.RepositoryAuthentication {