From adaab2bb6d95583606869f81eadf72fd7575d403 Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Tue, 12 Sep 2023 21:32:58 -0400 Subject: [PATCH] Swallow errors in chartInstalled function (#449) This cannot be executed by the server as it stands so need to s --- pkg/template/funcs.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/template/funcs.go b/pkg/template/funcs.go index a65be2a8..35c8b34d 100644 --- a/pkg/template/funcs.go +++ b/pkg/template/funcs.go @@ -165,12 +165,14 @@ func chartInstalled(name, repoName string) (bool, error) { repo, err := client.GetRepository(repoName) if err != nil { - return false, err + fmt.Printf("error: %s\n", err) + return false, nil } chartInstallations, err := client.GetChartInstallations(repo.Id) if err != nil { - return false, err + fmt.Printf("error: %s\n", err) + return false, nil } for _, chartInstallation := range chartInstallations {