From 91a85927b8a0996b184ae72f3cd56fdba9cf9623 Mon Sep 17 00:00:00 2001 From: Yannick Struyf Date: Fri, 15 Jan 2021 18:30:48 +0100 Subject: [PATCH] removed project_ref --- .../resource_nutanix_access_control_policy.go | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/nutanix/resource_nutanix_access_control_policy.go b/nutanix/resource_nutanix_access_control_policy.go index b56fe6ec1..5916432f1 100644 --- a/nutanix/resource_nutanix_access_control_policy.go +++ b/nutanix/resource_nutanix_access_control_policy.go @@ -97,29 +97,6 @@ func resourceNutanixAccessControlPolicy() *schema.Resource { }, }, }, - "project_reference": { - Type: schema.TypeList, - MaxItems: 1, - Optional: true, - Computed: true, - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "uuid": { - Type: schema.TypeString, - Optional: true, - }, - "name": { - Type: schema.TypeString, - Optional: true, - }, - "kind": { - Type: schema.TypeString, - Optional: true, - Default: "project", - }, - }, - }, - }, "name": { Type: schema.TypeString, Optional: true, @@ -380,9 +357,6 @@ func resourceNutanixAccessControlPolicyRead(d *schema.ResourceData, meta interfa if err := d.Set("categories", c); err != nil { return err } - if err := d.Set("project_reference", flattenReferenceValuesList(resp.Metadata.ProjectReference)); err != nil { - return err - } if err := d.Set("owner_reference", flattenReferenceValuesList(resp.Metadata.OwnerReference)); err != nil { return err } @@ -455,9 +429,6 @@ func resourceNutanixAccessControlPolicyUpdate(d *schema.ResourceData, meta inter if d.HasChange("owner_reference") { metadata.OwnerReference = validateRefList(d.Get("owner_reference").([]interface{}), nil) } - if d.HasChange("project_reference") { - metadata.ProjectReference = validateRefList(d.Get("project_reference").([]interface{}), utils.StringPtr("project")) - } if d.HasChange("name") { spec.Name = utils.StringPtr(d.Get("name").(string)) }