Skip to content

Commit

Permalink
mprop->props
Browse files Browse the repository at this point in the history
  • Loading branch information
magodo committed Mar 26, 2020
1 parent 6420127 commit 682d491
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ func resourceArmLogAnalyticsDataSourceWindowsPerformanceCounterRead(d *schema.Re
d.Set("name", resp.Name)
d.Set("resource_group_name", id.ResourceGroup)
d.Set("workspace_name", id.Workspace)
if mprop := resp.Properties; mprop != nil {
propStr, err := structure.FlattenJsonToString(mprop.(map[string]interface{}))
if props := resp.Properties; props != nil {
propStr, err := structure.FlattenJsonToString(props.(map[string]interface{}))
if err != nil {
return fmt.Errorf("failed to flatten properties map to json for Log Analytics DataSource Windows Performance Counter %q (Resource Group %q / Workspace: %q): %+v", id.Name, id.ResourceGroup, id.Workspace, err)
}
Expand Down

0 comments on commit 682d491

Please sign in to comment.