Skip to content

Commit

Permalink
Merge pull request #334 from cderici/integration-update-fix
Browse files Browse the repository at this point in the history
Fix panic in intergration resource update
  • Loading branch information
cderici authored Oct 30, 2023
2 parents 96ec4ff + 3894b47 commit 5057ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/resource_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (r *integrationResource) Update(ctx context.Context, req resource.UpdateReq
}

applications := parseApplications(response.Applications)
appType := req.State.Schema.GetAttributes()["application"].(schema.SetNestedAttribute).NestedObject.Type()
appType := req.State.Schema.GetBlocks()["application"].(schema.SetNestedBlock).NestedObject.Type()
apps, aErr := types.SetValueFrom(ctx, appType, applications)
if aErr.HasError() {
resp.Diagnostics.Append(aErr...)
Expand Down

0 comments on commit 5057ec8

Please sign in to comment.