From 9e4bb4af376ed9c71e56830cec88c310dadf9384 Mon Sep 17 00:00:00 2001 From: sivakumar subraani Date: Thu, 30 Nov 2023 16:54:58 +0000 Subject: [PATCH] review comments --- pkg/controllers/dataexport/reconcile.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controllers/dataexport/reconcile.go b/pkg/controllers/dataexport/reconcile.go index 5ef9a51c7..fe779fc28 100644 --- a/pkg/controllers/dataexport/reconcile.go +++ b/pkg/controllers/dataexport/reconcile.go @@ -578,12 +578,13 @@ func parseExcludeFileListKey(pvcStorageClass string, excludeFileListValue string var err error for _, storageClass := range storageClassList { equalSignSplit := strings.Split(storageClass, "=") - if len(equalSignSplit) != 2 { + if len(equalSignSplit) <= 1 { return "", fmt.Errorf("invalid exclude file list in the configmap parameter") } // if the PVC storageclass and configure storageclass are same, extract the configured ignore file list if pvcStorageClass == equalSignSplit[0] { excludeFileList = equalSignSplit[1] + break } }