Skip to content

Commit

Permalink
Merge pull request #5915 from terraform-providers/b/app-service-plan-…
Browse files Browse the repository at this point in the history
…update

exclude app_service_environment_id from update when empty
  • Loading branch information
jackofallops authored Mar 4, 2020
2 parents 5bb8657 + e4b3684 commit 954179a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,10 @@ func resourceArmAppServicePlanCreateUpdate(d *schema.ResourceData, meta interfac
}

if v, exists := d.GetOkExists("app_service_environment_id"); exists {
appServicePlan.AppServicePlanProperties.HostingEnvironmentProfile = &web.HostingEnvironmentProfile{
ID: utils.String(v.(string)),
if v != "" {
appServicePlan.AppServicePlanProperties.HostingEnvironmentProfile = &web.HostingEnvironmentProfile{
ID: utils.String(v.(string)),
}
}
}

Expand Down

0 comments on commit 954179a

Please sign in to comment.