From c80218f70cf93321f61511dbe089851de062fd41 Mon Sep 17 00:00:00 2001 From: Yannick Struyf Date: Wed, 18 Nov 2020 15:53:28 +0100 Subject: [PATCH] modified typeset casting for user_reference_list and user_group_reference_list --- nutanix/resource_nutanix_access_control_policy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nutanix/resource_nutanix_access_control_policy.go b/nutanix/resource_nutanix_access_control_policy.go index c775ab9b4..8e14a6eba 100644 --- a/nutanix/resource_nutanix_access_control_policy.go +++ b/nutanix/resource_nutanix_access_control_policy.go @@ -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") {