File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments