Skip to content

Commit

Permalink
modified typeset casting for user_reference_list and user_group_refer…
Browse files Browse the repository at this point in the history
…ence_list
  • Loading branch information
yannickstruyf3 committed Nov 18, 2020
1 parent ee6ca52 commit c80218f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nutanix/resource_nutanix_access_control_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,11 +466,11 @@ func resourceNutanixAccessControlPolicyUpdate(d *schema.ResourceData, meta inter
}

if d.HasChange("user_reference_list") {
res.UserGroupReferenceList = validateArrayRef(d.Get("user_reference_list").([]interface{}), utils.StringPtr("user"))
res.UserGroupReferenceList = validateArrayRef(d.Get("user_reference_list").(*schema.Set), utils.StringPtr("user"))
}

if d.HasChange("user_group_reference_list") {
res.UserGroupReferenceList = validateArrayRef(d.Get("user_group_reference_list").([]interface{}), utils.StringPtr("user_group"))
res.UserGroupReferenceList = validateArrayRef(d.Get("user_group_reference_list").(*schema.Set), utils.StringPtr("user_group"))
}

if d.HasChange("role_reference") {
Expand Down

0 comments on commit c80218f

Please sign in to comment.