Skip to content

Commit

Permalink
Add default timeout of 20m to databricks_mount
Browse files Browse the repository at this point in the history
Fix #1273
  • Loading branch information
nfx committed Apr 28, 2022
1 parent 0b679a6 commit 83e8cde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storage/resource_mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package storage

import (
"context"
"time"

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

0 comments on commit 83e8cde

Please sign in to comment.