Skip to content

Commit

Permalink
added dedicated timeout for hvn route delete (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
smaant authored Jun 7, 2021
1 parent b05dca2 commit e7651f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/resources/hvn_route.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Optional:

- **create** (String)
- **default** (String)
- **delete** (String)

## Import

Expand Down
2 changes: 2 additions & 0 deletions internal/provider/resource_hvn_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (

var hvnRouteDefaultTimeout = time.Minute * 1
var hvnRouteCreateTimeout = time.Minute * 35
var hvnRouteDeleteTimeout = time.Minute * 25

func resourceHvnRoute() *schema.Resource {
return &schema.Resource{
Expand All @@ -29,6 +30,7 @@ func resourceHvnRoute() *schema.Resource {
Timeouts: &schema.ResourceTimeout{
Default: &hvnRouteDefaultTimeout,
Create: &hvnRouteCreateTimeout,
Delete: &hvnRouteDeleteTimeout,
},
Importer: &schema.ResourceImporter{
StateContext: resourceHVNRouteImport,
Expand Down

0 comments on commit e7651f7

Please sign in to comment.