Skip to content

Commit e7ada2c

Browse files
authored
Merge pull request #980 from hashicorp/fix-workspace-interface-conv-panic
Fix workspace interface conv panic
2 parents 6ab2665 + 1ff7550 commit e7ada2c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Unreleased
22

3+
BUG FIXES:
4+
* `r/tfe_workspace`: Fix panic when updating `trigger_patterns` attribute, by @liamstevens [969](https://github.com/hashicorp/terraform-provider-tfe/pull/969)
5+
36
FEATURES:
47
* **New Resource**: `r/tfe_saml_settings` manages SAML Settings, by @karvounis-form3 [970](https://github.com/hashicorp/terraform-provider-tfe/pull/970)
58
* `d/tfe_saml_settings`: Add PrivateKey (sensitive), SignatureSigningMethod, and SignatureDigestMethod attributes, by @karvounis-form3 [970](https://github.com/hashicorp/terraform-provider-tfe/pull/970)

tfe/resource_tfe_workspace.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,9 @@ func resourceTFEWorkspaceUpdate(d *schema.ResourceData, meta interface{}) error
603603

604604
if tps, ok := d.GetOk("trigger_patterns"); ok {
605605
for _, tp := range tps.([]interface{}) {
606-
options.TriggerPatterns = append(options.TriggerPatterns, tp.(string))
606+
if val, ok := tp.(string); ok {
607+
options.TriggerPatterns = append(options.TriggerPatterns, val)
608+
}
607609
}
608610
} else {
609611
options.TriggerPatterns = []string{}

0 commit comments

Comments
 (0)