Skip to content

Commit

Permalink
Merge pull request #231 from yannickstruyf3/bugfix/acp-project-reference
Browse files Browse the repository at this point in the history
removed project_ref
  • Loading branch information
marinsalinas authored Jan 22, 2021
2 parents 894a6dd + 91a8592 commit 8406709
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions nutanix/resource_nutanix_access_control_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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))
}
Expand Down

0 comments on commit 8406709

Please sign in to comment.