Skip to content

Commit

Permalink
azurerm_sql_database - fix #4196 by ensuring read_scale is al… (#4573)
Browse files Browse the repository at this point in the history
fixes #4196
  • Loading branch information
hund authored and katbyte committed Oct 10, 2019
1 parent 1fbae47 commit 77742c5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions azurerm/resource_arm_sql_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,13 +434,11 @@ func resourceArmSqlDatabaseCreateUpdate(d *schema.ResourceData, meta interface{}
}
}

if v, ok := d.GetOk("read_scale"); ok {
readScale := v.(bool)
if readScale {
properties.DatabaseProperties.ReadScale = sql.ReadScaleEnabled
} else {
properties.DatabaseProperties.ReadScale = sql.ReadScaleDisabled
}
readScale := d.Get("read_scale").(bool)
if readScale {
properties.DatabaseProperties.ReadScale = sql.ReadScaleEnabled
} else {
properties.DatabaseProperties.ReadScale = sql.ReadScaleDisabled
}

// The requested Service Objective Name does not match the requested Service Objective Id.
Expand Down

0 comments on commit 77742c5

Please sign in to comment.