Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions internal/catalogapi/catalogapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func PopulateProduct(
return nil, err
}

attachedIDs := make([]string, len(associatedComponents))
attachedIDs := make([]string, 0, len(associatedComponents))
newListing.With.Components = make([]*resource.Component, 0, len(associatedComponents))
for _, v := range associatedComponents {
attachedIDs = append(attachedIDs, v.Id)
Expand All @@ -281,7 +281,6 @@ func PopulateProduct(
slices.Sort(attachedIDs)
slices.Sort(newListing.Spec.CertProjects)

L.Info("foo")
if !slices.Equal(attachedIDs, newListing.Spec.CertProjects) {
L.Debug("product listing has attached components that are not marked as active.")
L.Debug(
Expand Down