@@ -158,7 +158,7 @@ func (r *rs) Create(ctx context.Context, req resource.CreateRequest, resp *resou
158158 if diags .HasError () {
159159 return
160160 }
161- legacyAdvConfig , advConfig , _ := UpdateAdvancedConfiguration (ctx , diags , r .Client , patchReqProcessArgsLegacy , patchReqProcessArgs , waitParams )
161+ legacyAdvConfig , advConfig , _ := UpdateAdvancedConfiguration (ctx , diags , r .Client , patchReqProcessArgsLegacy , patchReqProcessArgs , clusterResp . AdvancedConfiguration , waitParams )
162162 if diags .HasError () {
163163 return
164164 }
@@ -268,7 +268,7 @@ func (r *rs) Update(ctx context.Context, req resource.UpdateRequest, resp *resou
268268 if diags .HasError () {
269269 return
270270 }
271- legacyAdvConfig , advConfig , advConfigChanged := UpdateAdvancedConfiguration (ctx , diags , r .Client , patchReqProcessArgsLegacy , patchReqProcessArgs , waitParams )
271+ legacyAdvConfig , advConfig , advConfigChanged := UpdateAdvancedConfiguration (ctx , diags , r .Client , patchReqProcessArgsLegacy , patchReqProcessArgs , clusterResp . AdvancedConfiguration , waitParams )
272272 if diags .HasError () {
273273 return
274274 }
@@ -283,6 +283,7 @@ func (r *rs) Update(ctx context.Context, req resource.UpdateRequest, resp *resou
283283 }
284284 }
285285 if advConfigChanged {
286+ // TODO: this is not called if only change is in cluster advConfig attrs
286287 updateModelAdvancedConfig (ctx , diags , r .Client , modelOut , legacyAdvConfig , advConfig , clusterResp .AdvancedConfiguration )
287288 if diags .HasError () {
288289 return
0 commit comments