Skip to content

Commit

Permalink
[Bug:] azurerum_cdn_frontdoor_route - fixes panic on import due to …
Browse files Browse the repository at this point in the history
…incorrect casing returned by the API (#18824)
  • Loading branch information
WodansSon authored Oct 18, 2022
1 parent d8f8fb3 commit 263a1a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/services/cdn/cdn_frontdoor_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func flattenCustomDomainActivatedResourceArray(input *[]cdn.ActivatedResourceRef
}

// Normalize these values in the configuration file we know they are valid because they were set on the
// resource... if these are modified in the portal the will all be lowercased...
// resource... if these are modified in the portal they will all be lowercased...
for _, customDomain := range *input {
if customDomain.ID == nil {
continue
Expand Down
5 changes: 3 additions & 2 deletions internal/services/cdn/cdn_frontdoor_route_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,10 @@ func flattenRuleSetResourceArray(input *[]cdn.ResourceReference) []interface{} {
}

// Normalize these values in the configuration file we know they are valid because they were set on the
// resource... if these are modified in the portal the will all be lowercased...
// resource... if these are modified in the portal they will all be lowercased...
// Issue: https://github.com/Azure/azure-sdk-for-go/issues/19378
for _, ruleSet := range *input {
id, _ := parse.FrontDoorRuleSetID(*ruleSet.ID)
id, _ := parse.FrontDoorRuleSetIDInsensitively(*ruleSet.ID)
results = append(results, id.ID())
}

Expand Down

0 comments on commit 263a1a8

Please sign in to comment.