From 97d91a6cbebe84cbced508b69c3391c7bdad756f Mon Sep 17 00:00:00 2001 From: Guilherme Branco Date: Wed, 13 Nov 2024 07:33:39 -0300 Subject: [PATCH] OCM-12526 | fix: still return the plan map when error --- provider/clusterrosa/common/properties.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provider/clusterrosa/common/properties.go b/provider/clusterrosa/common/properties.go index ebea4fd1..403c00c6 100644 --- a/provider/clusterrosa/common/properties.go +++ b/provider/clusterrosa/common/properties.go @@ -16,11 +16,11 @@ func ValidatePatchProperties(ctx context.Context, state, plan types.Map) (map[st if creatorArnValue, ok := propertiesElements[PropertyRosaCreatorArn]; ok { ogProperties, err := common.OptionalMap(ctx, state) if err != nil { - return nil, err + return propertiesElements, err } if ogCreatorArn, ogOk := ogProperties[PropertyRosaCreatorArn]; ogOk { if creatorArnValue != ogCreatorArn { - return nil, fmt.Errorf("Shouldn't patch property '%s'", PropertyRosaCreatorArn) + return propertiesElements, fmt.Errorf("Shouldn't patch property '%s'", PropertyRosaCreatorArn) } } }