Skip to content

Commit

Permalink
chore: Avoid update options (handled in normalize instead)
Browse files Browse the repository at this point in the history
  • Loading branch information
EspenAlbert committed Nov 29, 2024
1 parent 0f48442 commit 7ccb934
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/service/advancedclustertpf/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ var (
DeprecationMsgOldSchema = fmt.Sprintf("%s %s", constant.DeprecationParam, DeprecationOldSchemaAction)
pauseRequest = admin.ClusterDescription20240805{Paused: conversion.Pointer(true)}
resumeRequest = admin.ClusterDescription20240805{Paused: conversion.Pointer(false)}
updateOptions = []update.PatchOptions{
{
IgnoreInState: []string{"diskSizeGB"},
},
}
)

func Resource() resource.Resource {
Expand Down Expand Up @@ -244,7 +239,7 @@ func (r *rs) applyClusterChanges(ctx context.Context, diags *diag.Diagnostics, s
return nil
}
normalizePatchPayload(latestReqState)
patchReq, err := update.PatchPayload(latestReqState, latestReq, updateOptions...)
patchReq, err := update.PatchPayload(latestReqState, latestReq)
if err != nil {
diags.AddError("errorPatchPayload", err.Error())
return nil
Expand Down

0 comments on commit 7ccb934

Please sign in to comment.