From b9864644302251bb462a0d68d260700ad5f28717 Mon Sep 17 00:00:00 2001 From: chaganti_rajitha Date: Fri, 10 Jan 2025 09:36:22 +0530 Subject: [PATCH] fixed DeleteStorageProtectionGroup function --- service/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/controller.go b/service/controller.go index 9fea16f3..ee84efe6 100644 --- a/service/controller.go +++ b/service/controller.go @@ -3945,7 +3945,7 @@ func (s *service) DeleteStorageProtectionGroup(ctx context.Context, req *csiext. } sg, err := pmaxClient.GetProtectedStorageGroup(ctx, symID, protectionGroupID) if err != nil { - if strings.Contains(err.Error(), cannotBeFound) { + if strings.Contains(err.Error(), cannotBeFound) || strings.Contains(err.Error(), "cannot be found") { // The protected storage group is already deleted log.Info(fmt.Sprintf("DeleteStorageProtectionGroup: Could not find protected SG: %s on SymID: %s so assume it's already deleted", protectionGroupID, symID)) return &csiext.DeleteStorageProtectionGroupResponse{}, nil