Skip to content

Commit

Permalink
update deprecated property enable_automatic_failover only when set to…
Browse files Browse the repository at this point in the history
… true
  • Loading branch information
stephybun committed Apr 5, 2024
1 parent c007632 commit 104950f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/cosmos/cosmosdb_account_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ func resourceCosmosDbAccountUpdate(d *pluginsdk.ResourceData, meta interface{})
enableAutomaticFailover := pointer.To(d.Get("automatic_failover_enabled").(bool))
if !features.FourPointOhBeta() {
// nolint : staticcheck
if v, ok := d.GetOkExists("enable_automatic_failover"); ok {
if v, ok := d.GetOkExists("enable_automatic_failover"); ok && v.(bool) {
enableAutomaticFailover = pointer.To(v.(bool))
}
}
Expand Down

0 comments on commit 104950f

Please sign in to comment.