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 authored Sep 13, 2023
1 parent 23ae1e8 commit adaab2b
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 adaab2b

Please sign in to comment.