Skip to content

Commit

Permalink
Merge pull request #112 from openshift-cherrypick-robot/cherry-pick-1…
Browse files Browse the repository at this point in the history
…10-to-release-4.10

Bug 2054605: fix: updates lvmvolumegroupnodestatus for vg
  • Loading branch information
nbalacha authored Feb 16, 2022
2 parents a8533f9 + 0103881 commit 214f9b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/vgmanager/vgmanager_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,10 @@ func setStatus(status *lvmv1alpha1.VGStatus, instance *lvmv1alpha1.LVMVolumeGrou
found := false

vgStatuses := instance.Spec.LVMVGStatus
for _, vgStatus := range vgStatuses {
for i, vgStatus := range vgStatuses {
if vgStatus.Name == status.Name {
found = true
vgStatus.Status = status.Status
vgStatus.Reason = status.Reason
vgStatus.Devices = status.Devices
vgStatuses[i] = *status
break
}
}
Expand Down

0 comments on commit 214f9b0

Please sign in to comment.