Skip to content

Commit 0f2abd0

Browse files
authored
fix indexing bug in SetPodSetsInfos (#322)
1 parent d09c6c6 commit 0f2abd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/utils/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ func SetPodSetInfos(aw *awv1beta2.AppWrapper, podSetsInfo []awv1beta2.AppWrapper
385385
if podSetsInfoIndex > len(podSetsInfo) {
386386
continue // we will return an error below...continuing to get an accurate count for the error message
387387
}
388-
aw.Spec.Components[idx].PodSetInfos[podSetIdx] = podSetsInfo[podSetIdx]
388+
aw.Spec.Components[idx].PodSetInfos[podSetIdx] = podSetsInfo[podSetsInfoIndex-1]
389389
}
390390
}
391391

0 commit comments

Comments
 (0)