Skip to content

Commit

Permalink
azurerm_cdn_endpoint nil check contents of country_codes (#16066)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephybun authored Mar 25, 2022
1 parent de9faa3 commit e5646f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/services/cdn/cdn_endpoint_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,10 @@ func expandCdnEndpointGeoFilters(d *pluginsdk.ResourceData) *[]cdn.GeoFilter {
countryCodes := make([]string, 0)

for _, v := range inputCountryCodes {
countryCode := v.(string)
countryCodes = append(countryCodes, countryCode)
if v != nil {
countryCode := v.(string)
countryCodes = append(countryCodes, countryCode)
}
}

filter := cdn.GeoFilter{
Expand Down

0 comments on commit e5646f9

Please sign in to comment.