Skip to content

Commit

Permalink
OCM-12526 | fix: still return the plan map when error
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbranco committed Nov 13, 2024
1 parent bf40aae commit 97d91a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider/clusterrosa/common/properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 97d91a6

Please sign in to comment.