Skip to content

Commit

Permalink
Merge pull request #5414 from terraform-providers/c-app-service
Browse files Browse the repository at this point in the history
Bug Fix: fix crash in `azurerm_app_service`
  • Loading branch information
tombuildsstuff authored Jan 17, 2020
2 parents c0b5a21 + d7ee3a7 commit bd0baad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/helpers/azure/app_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ func ExpandAppServiceLogs(input interface{}) web.SiteLogsConfigProperties {
configs := input.([]interface{})
logs := web.SiteLogsConfigProperties{}

if len(configs) == 0 {
if len(configs) == 0 || configs[0] == nil {
return logs
}

Expand Down

0 comments on commit bd0baad

Please sign in to comment.