File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1371,7 +1371,7 @@ func (ctrl *csiSnapshotCommonController) removeGroupSnapshotFinalizer(groupSnaps
1371
1371
// getGroupSnapshotDriverName is a helper function to get driver from the VolumeGroupSnapshot.
1372
1372
// We try to get the driverName in multiple ways, as snapshot controller metrics depend on the correct driverName.
1373
1373
func (ctrl * csiSnapshotCommonController ) getGroupSnapshotDriverName (vgs * crdv1alpha1.VolumeGroupSnapshot ) (string , error ) {
1374
- klog .V (5 ).Infof ("getSnapshotDriverName: VolumeSnapshot [%s]" , vgs .Name )
1374
+ klog .V (5 ).Infof ("getGroupSnapshotDriverName: VolumeGroupSnapshot [%s]" , vgs .Name )
1375
1375
var driverName string
1376
1376
1377
1377
// Pre-Provisioned groupsnapshots have contentName as source
@@ -1396,9 +1396,9 @@ func (ctrl *csiSnapshotCommonController) getGroupSnapshotDriverName(vgs *crdv1al
1396
1396
1397
1397
// Dynamic groupsnapshots will have a groupsnapshotclass with a driver
1398
1398
if vgs .Spec .VolumeGroupSnapshotClassName != nil {
1399
- class , err := ctrl .getSnapshotClass (* vgs .Spec .VolumeGroupSnapshotClassName )
1399
+ class , err := ctrl .getGroupSnapshotClass (* vgs .Spec .VolumeGroupSnapshotClassName )
1400
1400
if err != nil {
1401
- klog .Errorf ("getGroupSnapshotDriverName: failed to get groupsnapshotClass : %v" , * vgs .Spec .VolumeGroupSnapshotClassName )
1401
+ klog .Errorf ("getGroupSnapshotDriverName: failed to get groupSnapshotClass : %v" , * vgs .Spec .VolumeGroupSnapshotClassName )
1402
1402
} else {
1403
1403
driverName = class .Driver
1404
1404
}
You can’t perform that action at this time.
0 commit comments