Skip to content

Commit

Permalink
Merge pull request #935 from terraform-providers/app-gateway-crash
Browse files Browse the repository at this point in the history
`azurerm_application_gateway` - fixes a crash where ssl_policy is nil when importing
  • Loading branch information
tombuildsstuff authored Mar 5, 2018
2 parents 3359ff5 + b389391 commit ec5e6ac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions azurerm/resource_arm_application_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -1359,9 +1359,11 @@ func flattenApplicationGatewayWafConfig(waf *network.ApplicationGatewayWebApplic
func flattenApplicationGatewaySslPolicy(policy *network.ApplicationGatewaySslPolicy) []interface{} {
result := make([]interface{}, 0)

if protocols := policy.DisabledSslProtocols; protocols != nil {
for _, proto := range *protocols {
result = append(result, string(proto))
if pol := policy; policy != nil {
if protocols := pol.DisabledSslProtocols; protocols != nil {
for _, proto := range *protocols {
result = append(result, string(proto))
}
}
}

Expand Down

0 comments on commit ec5e6ac

Please sign in to comment.