Skip to content

Commit

Permalink
Fix crash (#3966)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbfrahry committed Jul 29, 2019
1 parent dfd4ceb commit 7de18b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/resource_arm_application_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -1714,7 +1714,7 @@ func flattenApplicationGatewayAuthenticationCertificates(input *[]network.Applic
// since the certificate data isn't returned we have to load it from the same index
if existing, ok := d.GetOk("authentication_certificate"); ok && existing != nil {
existingVals := existing.([]interface{})
if len(existingVals) >= i {
if len(existingVals) > i {
existingCerts := existingVals[i].(map[string]interface{})
if data := existingCerts["data"]; data != nil {
output["data"] = data.(string)
Expand Down

0 comments on commit 7de18b7

Please sign in to comment.