Skip to content

Commit 17c7e1b

Browse files
committed
Allow new discovered error to show up
1 parent 9f3146b commit 17c7e1b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

pkg/controller/snapshot_controller.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -360,15 +360,14 @@ func (ctrl *csiSnapshotController) updateSnapshotErrorStatusWithEvent(snapshot *
360360
return nil
361361
}
362362
snapshotClone := snapshot.DeepCopy()
363-
if snapshot.Status.Error == nil {
364-
statusError := &storage.VolumeError{
365-
Time: metav1.Time{
366-
Time: time.Now(),
367-
},
368-
Message: message,
369-
}
370-
snapshotClone.Status.Error = statusError
363+
statusError := &storage.VolumeError{
364+
Time: metav1.Time{
365+
Time: time.Now(),
366+
},
367+
Message: message,
371368
}
369+
snapshotClone.Status.Error = statusError
370+
372371
snapshotClone.Status.Ready = false
373372
newSnapshot, err := ctrl.clientset.VolumesnapshotV1alpha1().VolumeSnapshots(snapshotClone.Namespace).Update(snapshotClone)
374373
if err != nil {

0 commit comments

Comments
 (0)