Skip to content

Commit

Permalink
feat: fix unsupported operation in ACL update
Browse files Browse the repository at this point in the history
  • Loading branch information
Gezi-lzq committed Aug 20, 2024
1 parent 06f0a24 commit c4becbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/resource_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ func (r *KafkaInstanceResource) Update(ctx context.Context, req resource.UpdateR
// Check if the ACL has changed
if state.ACL.ValueBool() != plan.ACL.ValueBool() {

if state.ACL.ValueBool() && plan.ACL.ValueBool() {
if state.ACL.ValueBool() && !plan.ACL.ValueBool() {
resp.Diagnostics.AddError("Unsupported Operation", "Turning off ACL is not supported")
return
}
Expand Down

0 comments on commit c4becbf

Please sign in to comment.