Skip to content

Commit

Permalink
Merge pull request #110 from nbalacha/status-fix
Browse files Browse the repository at this point in the history
fix: updates lvmvolumegroupnodestatus for vg
  • Loading branch information
openshift-merge-robot authored Feb 15, 2022
2 parents 8426354 + f989bbe commit 205028c
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 205028c

Please sign in to comment.