From 479200ba07ab9a4f66561ff7ea6702151c046699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=BE=99=E5=B3=B0?= Date: Mon, 22 Aug 2022 14:42:49 +0800 Subject: [PATCH] mistake --- pkg/controller/backup_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/backup_controller.go b/pkg/controller/backup_controller.go index f8938012985..33cd1ca3ed1 100644 --- a/pkg/controller/backup_controller.go +++ b/pkg/controller/backup_controller.go @@ -951,7 +951,7 @@ func (c *backupController) deleteVolumeSnapshot(volumeSnapshots []*snapshotv1api if vs.Status.BoundVolumeSnapshotContentName != nil && len(*vs.Status.BoundVolumeSnapshotContentName) > 0 { vsc = vscMap[*vs.Status.BoundVolumeSnapshotContentName] - if nil != vsc { + if nil == vsc { logger.Errorf("Not find %s from the vscMap", vs.Status.BoundVolumeSnapshotContentName) return }