Skip to content

Commit 4f82209

Browse files
committed
run 'make -k all test' failed
1 parent 10d6437 commit 4f82209

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/controller/snapshot_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ func (ctrl *csiSnapshotController) updateSnapshotErrorStatusWithEvent(snapshot *
423423
}
424424
snapshotClone.Status.Error = statusError
425425
snapshotClone.Status.ReadyToUse = false
426-
newSnapshot, err := ctrl.clientset.VolumesnapshotV1alpha1().VolumeSnapshots(snapshotClone.Namespace).UpdateStatus(snapshotClone)
426+
newSnapshot, err := ctrl.clientset.SnapshotV1alpha1().VolumeSnapshots(snapshotClone.Namespace).UpdateStatus(snapshotClone)
427427

428428
if err != nil {
429429
klog.V(4).Infof("updating VolumeSnapshot[%s] error status failed %v", snapshotKey(snapshot), err)
@@ -848,7 +848,7 @@ func (ctrl *csiSnapshotController) updateSnapshotStatus(snapshot *crdv1.VolumeSn
848848
status.RestoreSize = resource.NewQuantity(size, resource.BinarySI)
849849
}
850850
snapshotClone.Status = status
851-
newSnapshotObj, err := ctrl.clientset.VolumesnapshotV1alpha1().VolumeSnapshots(snapshotClone.Namespace).UpdateStatus(snapshotClone)
851+
newSnapshotObj, err := ctrl.clientset.SnapshotV1alpha1().VolumeSnapshots(snapshotClone.Namespace).UpdateStatus(snapshotClone)
852852
if err != nil {
853853
return nil, newControllerUpdateError(snapshotKey(snapshot), err.Error())
854854
}

0 commit comments

Comments
 (0)