From bd1789fc11c96a70f71bf5d7fe03b2b68c308fad Mon Sep 17 00:00:00 2001 From: sivakumar subraani Date: Mon, 18 Nov 2024 03:37:41 +0000 Subject: [PATCH] review comments --- pkg/executor/nfs/nfsbkpresources.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/executor/nfs/nfsbkpresources.go b/pkg/executor/nfs/nfsbkpresources.go index 898614c5..38706412 100644 --- a/pkg/executor/nfs/nfsbkpresources.go +++ b/pkg/executor/nfs/nfsbkpresources.go @@ -314,9 +314,8 @@ func uploadResource( } } } else if len(backup.Spec.ExcludeResourceTypes) != 0 { - isPersistentVolumeType := IsPVCInExcludeResourceType(backup) exclude := backup.Spec.ExcludeResourceTypes - if isPersistentVolumeType { + if IsPVCInExcludeResourceType(backup) { exclude = append(exclude, "PersistentVolume") } excludeTypeObjects, _, err := rc.GetResourcesExcludingTypes(