Skip to content

Commit

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

"request_routing_rule": {
Type: schema.TypeList,
Type: schema.TypeSet,
Required: true,
MinItems: 1,
Elem: &schema.Resource{
Expand Down Expand Up @@ -2663,7 +2663,7 @@ func flattenApplicationGatewayProbes(input *[]network.ApplicationGatewayProbe) [
}

func expandApplicationGatewayRequestRoutingRules(d *schema.ResourceData, gatewayID string) (*[]network.ApplicationGatewayRequestRoutingRule, error) {
vs := d.Get("request_routing_rule").([]interface{})
vs := d.Get("request_routing_rule").(*schema.Set).List()
results := make([]network.ApplicationGatewayRequestRoutingRule, 0)

for _, raw := range vs {
Expand Down

0 comments on commit 7622f8b

Please sign in to comment.