Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcturusZhang committed Apr 22, 2020
1 parent 6f1c795 commit 681f42b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func resourceArmApplicationGateway() *schema.Resource {
},

"frontend_port": {
Type: schema.TypeList,
Type: schema.TypeSet,
Required: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down Expand Up @@ -2405,7 +2405,7 @@ func flattenApplicationGatewayIPConfigurations(input *[]network.ApplicationGatew
}

func expandApplicationGatewayFrontendPorts(d *schema.ResourceData) *[]network.ApplicationGatewayFrontendPort {
vs := d.Get("frontend_port").([]interface{})
vs := d.Get("frontend_port").(*schema.Set).List()
results := make([]network.ApplicationGatewayFrontendPort, 0)

for _, raw := range vs {
Expand Down

0 comments on commit 681f42b

Please sign in to comment.