Skip to content

Commit

Permalink
Merge pull request #34 from ageoffron/add_timeouts_support
Browse files Browse the repository at this point in the history
Add timeouts support
  • Loading branch information
cpg1111 authored Mar 6, 2023
2 parents 4b1b80e + 46b6c4e commit 3729b92
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 1.0.1.1

IMPROVEMENTS:

* Modify Resource `maas_machine` with timeouts support
* Modify Resource `maas_instance` with timeouts support

## 1.0.1 (Unreleased)

NEW:
Expand Down
4 changes: 4 additions & 0 deletions maas/resource_maas_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package maas
import (
"context"
"fmt"
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand Down Expand Up @@ -178,6 +179,9 @@ func resourceMaasInstance() *schema.Resource {
},
},
},
Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(20 * time.Minute),
},
}
}

Expand Down
3 changes: 3 additions & 0 deletions maas/resource_maas_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ func resourceMaasMachine() *schema.Resource {
Description: "The resource pool of the machine. This is computed if it's not set.",
},
},
Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(20 * time.Minute),
},
}
}

Expand Down

0 comments on commit 3729b92

Please sign in to comment.