Skip to content

Commit

Permalink
read IsXenon property correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksymilian Boguń committed Jun 14, 2019
1 parent 361fb2d commit 3af8f3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion azurerm/data_source_app_service_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ func dataSourceAppServicePlanRead(d *schema.ResourceData, meta interface{}) erro
d.Set("name", name)
d.Set("resource_group_name", resourceGroup)
d.Set("kind", resp.Kind)
d.Set("is_xenon", resp.IsXenon)

if location := resp.Location; location != nil {
d.Set("location", azure.NormalizeLocation(*location))
Expand All @@ -128,6 +127,8 @@ func dataSourceAppServicePlanRead(d *schema.ResourceData, meta interface{}) erro
if props.MaximumElasticWorkerCount != nil {
d.Set("maximum_elastic_worker_count", int(*props.MaximumElasticWorkerCount))
}

d.Set("is_xenon", props.IsXenon)
}

if err := d.Set("sku", flattenAppServicePlanSku(resp.Sku)); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_app_service_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ func resourceArmAppServicePlanRead(d *schema.ResourceData, meta interface{}) err
d.Set("location", azure.NormalizeLocation(*location))
}
d.Set("kind", resp.Kind)
d.Set("is_xenon", resp.IsXenon)

if props := resp.AppServicePlanProperties; props != nil {
if err := d.Set("properties", flattenAppServiceProperties(props)); err != nil {
Expand All @@ -306,6 +305,7 @@ func resourceArmAppServicePlanRead(d *schema.ResourceData, meta interface{}) err

d.Set("per_site_scaling", props.PerSiteScaling)
d.Set("reserved", props.Reserved)
d.Set("is_xenon", props.IsXenon)
}

if err := d.Set("sku", flattenAppServicePlanSku(resp.Sku)); err != nil {
Expand Down

0 comments on commit 3af8f3d

Please sign in to comment.