Skip to content

Commit

Permalink
Fix databricks_sql_endpoint timeout propagation (#1159)
Browse files Browse the repository at this point in the history
Previously, `timeout` meta-block was documented, but resulting in error. It was due to `Timeouts: &schema.ResourceTimeout` not added on resource.

Fixes #1142
  • Loading branch information
nfx authored Mar 7, 2022
1 parent e2203b1 commit c8a4813
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sql/resource_sql_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ func ResourceSQLEndpoint() *schema.Resource {
return m
})
return common.Resource{
Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(30 * time.Minute),
},
Create: func(ctx context.Context, d *schema.ResourceData, c *common.DatabricksClient) error {
var se SQLEndpoint
common.DataToStructPointer(d, s, &se)
Expand Down

0 comments on commit c8a4813

Please sign in to comment.