Skip to content

Commit

Permalink
ID casing fixes (#18467)
Browse files Browse the repository at this point in the history
Co-authored-by: kt <[email protected]>
  • Loading branch information
favoretti and katbyte authored Sep 22, 2022
1 parent 4f10c5a commit 375102a
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
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func resourceSecurityCenterWorkspaceRead(d *pluginsdk.ResourceData, meta interfa
d.Set("scope", properties.Scope)
workspaceId := ""
if properties.WorkspaceID != nil {
id, err := workspaces.ParseWorkspaceID(*properties.WorkspaceID)
id, err := workspaces.ParseWorkspaceIDInsensitively(*properties.WorkspaceID)
if err != nil {
return fmt.Errorf("Reading Security Center Log Analytics Workspace ID: %+v", err)
}
Expand Down

0 comments on commit 375102a

Please sign in to comment.