Merge pull request #5485 from Obmondo/fix/error-message

Fix pointer deference to string in error message
This commit is contained in:
lyndon
2022-11-04 14:15:56 +08:00
committed by GitHub

View File

@@ -989,7 +989,7 @@ func (c *backupController) deleteVolumeSnapshot(volumeSnapshots []snapshotv1api.
len(*vs.Status.BoundVolumeSnapshotContentName) > 0 {
var found bool
if vsc, found = vscMap[*vs.Status.BoundVolumeSnapshotContentName]; !found {
logger.Errorf("Not find %s from the vscMap", vs.Status.BoundVolumeSnapshotContentName)
logger.Errorf("Not find %s from the vscMap", *vs.Status.BoundVolumeSnapshotContentName)
return
}