Skip to content

Commit

Permalink
Merge pull request #4859 from dfialho/dfialho/fix-teams-location-endp…
Browse files Browse the repository at this point in the history
…oints
  • Loading branch information
jacobbednarz authored Jan 13, 2025
2 parents 7f7ed5e + 6169aa3 commit 8a39731
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/4859.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/cloudflare_teams_location: Fix import failures on teams locations
```
3 changes: 3 additions & 0 deletions internal/sdkv2provider/resource_cloudflare_teams_location.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ func flattenTeamsLocationNetworksIntoList(networks []cloudflare.TeamsLocationNet
}

func flattenTeamsEndpoints(endpoint *cloudflare.TeamsLocationEndpoints) []interface{} {
if endpoint == nil {
return nil
}
flattenedEndpoints := map[string]interface{}{
"ipv4": flattenTeamsEndpointIpv4Field(endpoint.IPv4Endpoint),
"ipv6": flattenTeamsEndpointIpv6Field(endpoint.IPv6Endpoint),
Expand Down

0 comments on commit 8a39731

Please sign in to comment.