Skip to content

Commit

Permalink
Swallow errors in chartInstalled function
Browse files Browse the repository at this point in the history
This cannot be executed by the server as it stands so need to s
  • Loading branch information
michaeljguarino committed Sep 12, 2023
1 parent 23ae1e8 commit 7eeff57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/template/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7eeff57

Please sign in to comment.