Skip to content

Commit

Permalink
ID casing fixes
Browse files Browse the repository at this point in the history
`azurerm_monitor_diagnostic_settings`: fix casing parsing
`azurerm_user_assigned_identity`: fix casing parsing

Fixes #14853
  • Loading branch information
favoretti committed Sep 20, 2022
1 parent 5883bc1 commit 3db9826
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func resourceMonitorDiagnosticSettingRead(d *pluginsdk.ResourceData, meta interf

workspaceId := ""
if props.WorkspaceId != nil && *props.WorkspaceId != "" {
parsedId, err := workspaces.ParseWorkspaceID(*props.WorkspaceId)
parsedId, err := workspaces.ParseWorkspaceIDInsensitively(*props.WorkspaceId)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/msi/user_assigned_identity_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func resourceArmUserAssignedIdentityRead(d *pluginsdk.ResourceData, meta interfa
ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d)
defer cancel()

id, err := commonids.ParseUserAssignedIdentityID(d.Id())
id, err := commonids.ParseUserAssignedIdentityIDInsensitively(d.Id())
if err != nil {
return err
}
Expand Down

0 comments on commit 3db9826

Please sign in to comment.