Skip to content

Commit 3057fce

Browse files
authored
Merge pull request #12 from benzaita/lx-2265-force-replace-for-colselect-change
LX-2265 Fixed the force replacing for colselect changes
2 parents 54faa54 + fed9aeb commit 3057fce

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ HOSTNAME=registry.terraform.io
33
NAMESPACE=benzaita
44
NAME=chaossearch
55
BINARY=terraform-provider-${NAME}
6-
VERSION=0.8.0
6+
VERSION=0.8.1
77
OS_ARCH=$(shell go env GOOS)_$(shell go env GOARCH)
88

99
default: install

chaossearch/resource_object_group.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,19 @@ func resourceObjectGroup() *schema.Resource {
100100
Elem: &schema.Resource{
101101
Schema: map[string]*schema.Schema{
102102
"type": {
103-
Type: schema.TypeString,
104-
Required: true,
103+
Type: schema.TypeString,
104+
Required: true,
105+
ForceNew: true,
105106
},
106107
"includes": {
107-
Type: schema.TypeList,
108+
Type: schema.TypeList,
108109
Elem: &schema.Schema{
109110
Type: schema.TypeString,
110111
},
111-
Required: true,
112+
Required: true,
113+
ForceNew: true,
112114
},
113115
},
114-
115116
},
116117
Optional: true,
117118
ForceNew: true,
@@ -149,7 +150,7 @@ func resourceObjectGroupCreate(ctx context.Context, data *schema.ResourceData, m
149150
columnSelectionInterfaces := data.Get("column_selection").(*schema.Set).List()[0]
150151
columnSelectionInterface := columnSelectionInterfaces.(map[string]interface{})
151152
columnSelection = map[string]interface{}{
152-
"type": columnSelectionInterface["type"].(string),
153+
"type": columnSelectionInterface["type"].(string),
153154
"includes": columnSelectionInterface["includes"].([]interface{}),
154155
}
155156
}

0 commit comments

Comments
 (0)