Skip to content

Commit

Permalink
Merge pull request #6862 from terraform-providers/c-api-management
Browse files Browse the repository at this point in the history
`azurerm_api_management` - fix crash with `policy`
  • Loading branch information
tombuildsstuff committed May 12, 2020
2 parents 7819850 + 318d410 commit f0ae825
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1226,7 +1226,7 @@ func flattenApiManagementSignUpSettings(input apimanagement.PortalSignupSettings
}

func expandApiManagementPolicies(input []interface{}) (*apimanagement.PolicyContract, error) {
if len(input) == 0 {
if len(input) == 0 || input[0] == nil {
return nil, nil
}

Expand Down

0 comments on commit f0ae825

Please sign in to comment.