Skip to content

Commit

Permalink
Merge pull request #139 from timtatt/fix/delete-connector
Browse files Browse the repository at this point in the history
  • Loading branch information
Mongey authored Jun 5, 2024
2 parents d9b79a1 + 987c6e8 commit 0d7094c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions connect/resource_kafka_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ func connectorDelete(d *schema.ResourceData, meta interface{}) error {
fmt.Printf("[INFO] Deleting the connector %s\n", name)

_, err := c.DeleteConnector(req, true)
if err == nil {
d.SetId("")
if err != nil {
return err
}

d.SetId("")

return nil
}

Expand Down

0 comments on commit 0d7094c

Please sign in to comment.