Skip to content

Commit

Permalink
catalog fetching: make sure we handle pipelines properly
Browse files Browse the repository at this point in the history
Read the sum from pipelines instead of tasks.

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester authored and savitaashture committed Mar 19, 2024
1 parent 242ab65 commit bcd86e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/catalog/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,14 @@ func getResourcesFromType(release Release, resourceType string) map[string]contr
m[r.Filename] = *r
}
case "pipelines":
for _, r := range release.Catalog.Resources.Tasks {
for _, r := range release.Catalog.Resources.Pipelines {
m[r.Filename] = *r
}
case "":
for _, r := range release.Catalog.Resources.Tasks {
m[r.Filename] = *r
}
for _, r := range release.Catalog.Resources.Tasks {
for _, r := range release.Catalog.Resources.Pipelines {
m[r.Filename] = *r
}
}
Expand Down

0 comments on commit bcd86e2

Please sign in to comment.