From c0ffc014189f382d47c41304259d3e0653fa2766 Mon Sep 17 00:00:00 2001 From: Joseph Lombrozo Date: Tue, 12 Dec 2023 14:48:02 -0500 Subject: [PATCH] found another one --- pkg/config/vcstoargomap.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/config/vcstoargomap.go b/pkg/config/vcstoargomap.go index 5636075d..7d551054 100644 --- a/pkg/config/vcstoargomap.go +++ b/pkg/config/vcstoargomap.go @@ -36,18 +36,18 @@ func (v2a *VcsToArgoMap) GetAppsInRepo(repoCloneUrl string) *AppDirectory { func (v2a *VcsToArgoMap) WalkKustomizeApps(repo *repo.Repo, fs fs.FS) *AppDirectory { var ( - result AppDirectory - err error + err error + result = NewAppDirectory() appdir = v2a.GetAppsInRepo(repo.CloneURL) apps = appdir.GetApps(nil) ) for _, app := range apps { - if err = walkKustomizeFiles(&result, fs, app.Name, app.Path); err != nil { + if err = walkKustomizeFiles(result, fs, app.Name, app.Path); err != nil { log.Error().Err(err).Msgf("failed to parse kustomize.yaml in %s", app.Path) } } - return &result + return result }