From 60d9036fe9bfe4473e310bd158d6fdc8f22efb36 Mon Sep 17 00:00:00 2001 From: bill-rich Date: Fri, 16 Jul 2021 07:23:55 -0700 Subject: [PATCH] Use engine_version compare function --- aws/resource_aws_db_instance.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/aws/resource_aws_db_instance.go b/aws/resource_aws_db_instance.go index 945b6ff50c7..8f7005fe45c 100644 --- a/aws/resource_aws_db_instance.go +++ b/aws/resource_aws_db_instance.go @@ -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) }