Skip to content

Commit

Permalink
azurerm_application_insights_webtests: .Kind turns to null after edit…
Browse files Browse the repository at this point in the history
…ing in Portal (#8372)

azurerm_application_insights_webtests: set `kind` from `WebTestProperties` if null
  • Loading branch information
magodo authored Sep 9, 2020
1 parent be1e755 commit 67da70a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ func resourceArmApplicationInsightsWebTestsRead(d *schema.ResourceData, meta int
}

if props := resp.WebTestProperties; props != nil {
// It is possible that the root level `kind` in response is empty in some cases (see PR #8372 for more info)
if resp.Kind == "" {
d.Set("kind", props.WebTestKind)
}
d.Set("synthetic_monitor_id", props.SyntheticMonitorID)
d.Set("description", props.Description)
d.Set("enabled", props.Enabled)
Expand Down

0 comments on commit 67da70a

Please sign in to comment.