Skip to content

Commit

Permalink
Don't mix name and display_name, seperate them as in azure api
Browse files Browse the repository at this point in the history
  • Loading branch information
torresdal committed Nov 22, 2018
1 parent ff71c76 commit 2e0cf0c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion azurerm/resource_arm_api_management_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ func resourceArmApiManagementApi() *schema.Resource {
Computed: true,
},

"display_name": {
Type: schema.TypeString,
Optional: true,
},

"service_url": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -322,7 +327,7 @@ func resourceArmApiManagementApiDelete(d *schema.ResourceData, meta interface{})
}

func expandApiManagementApiProperties(d *schema.ResourceData) *apimanagement.APICreateOrUpdateProperties {
displayName := d.Get("name").(string)
displayName := d.Get("display_name").(string)
path := d.Get("path").(string)
serviceUrl := d.Get("service_url").(string)
description := d.Get("description").(string)
Expand Down

0 comments on commit 2e0cf0c

Please sign in to comment.