Skip to content

Commit

Permalink
Swallow errors in chartInstalled function (#449)
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 Aug 28, 2024
1 parent 111bb9e commit 7c8b5ba
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 7c8b5ba

Please sign in to comment.