Skip to content

Commit 01d9ced

Browse files
authored
Add default timeout of 20m to databricks_mount (#1280)
1 parent 53337d0 commit 01d9ced

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

storage/resource_mount.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package storage
22

33
import (
44
"context"
5+
"time"
56

67
"github.com/databrickslabs/terraform-provider-databricks/common"
78
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
@@ -64,5 +65,8 @@ func ResourceMount() *schema.Resource {
6465
r.ReadContext = mountCallback(mountRead).preProcess(r)
6566
r.DeleteContext = mountCallback(mountDelete).preProcess(r)
6667
r.Importer = nil
68+
r.Timeouts = &schema.ResourceTimeout{
69+
Default: schema.DefaultTimeout(20*time.Minute),
70+
}
6771
return r
6872
}

0 commit comments

Comments
 (0)