Skip to content

Commit 2f4bf19

Browse files
authored
Make the user ACL field a TypeSet rather than a TypeList (#495)
1 parent 72b68da commit 2f4bf19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vultr/resource_vultr_users.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func resourceVultrUsers() *schema.Resource {
4141
Default: true,
4242
},
4343
"acl": {
44-
Type: schema.TypeList,
44+
Type: schema.TypeSet,
4545
Elem: &schema.Schema{Type: schema.TypeString},
4646
Optional: true,
4747
},
@@ -64,7 +64,7 @@ func resourceVultrUsersCreate(ctx context.Context, d *schema.ResourceData, meta
6464
}
6565

6666
acl, aclOK := d.GetOk("acl")
67-
a := acl.([]interface{})
67+
a := acl.(*schema.Set).List()
6868
var aclMap []string
6969
if aclOK {
7070
for _, v := range a {
@@ -138,7 +138,7 @@ func resourceVultrUsersUpdate(ctx context.Context, d *schema.ResourceData, meta
138138
}
139139

140140
acl, aclOK := d.GetOk("acl")
141-
a := acl.([]interface{})
141+
a := acl.(*schema.Set).List()
142142
var aclMap []string
143143
if aclOK {
144144
for _, v := range a {

0 commit comments

Comments
 (0)