Skip to content

Commit

Permalink
Use engine_version compare function
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-rich committed Jul 21, 2021
1 parent 15c3f1d commit 60d9036
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions aws/resource_aws_db_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -1946,8 +1946,5 @@ func expandRestoreToPointInTime(l []interface{}) *rds.RestoreDBInstanceToPointIn
func dbSetResourceDataEngineVersionFromInstance(d *schema.ResourceData, c *rds.DBInstance) {
oldVersion := d.Get("engine_version").(string)
newVersion := aws.StringValue(c.EngineVersion)
if oldVersion != newVersion && string(append([]byte(oldVersion), []byte(".")...)) != string([]byte(newVersion)[0:len(oldVersion)+1]) {
d.Set("engine_version", newVersion)
}
d.Set("engine_version_actual", newVersion)
compareActualEngineVersion(d, oldVersion, newVersion)
}

0 comments on commit 60d9036

Please sign in to comment.