Skip to content

Commit

Permalink
minor change: d.GetChange("database_version") to
Browse files Browse the repository at this point in the history
d.Get()
  • Loading branch information
Philip Jonany committed Oct 8, 2024
1 parent a9f4648 commit 06b338c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2606,7 +2606,7 @@ func isReplicaPromoteRequested(_ context.Context, oldInstanceType interface{}, n

// Check if this resource change is the manual update done on old primary after a switchover. If true, no replacement is needed.
func isSwitchoverFromOldPrimarySide(d *schema.ResourceDiff) bool {
dbVersion, _ := d.GetChange("database_version")
dbVersion := d.Get("database_version")
if !strings.HasPrefix(dbVersion.(string), "SQLSERVER") {
log.Printf("[WARN] Switchover is only supported for SQL Server %q", dbVersion)
return false
Expand Down

0 comments on commit 06b338c

Please sign in to comment.