Merge pull request #7476 from ioito/automated-cherry-pick-of-#7474-upstream-release-3.2

Automated cherry pick of #7474: fix: typo
This commit is contained in:
Zexi Li
2020-08-03 16:57:54 +08:00
committed by GitHub
+1 -1
View File
@@ -986,7 +986,7 @@ func (self *SAliyunRegionDriver) ValidateDBInstanceRecovery(ctx context.Context,
if !((utils.IsInStringArray(instance.EngineVersion, []string{"8.0", "5.7"}) &&
instance.StorageType == api.ALIYUN_DBINSTANCE_STORAGE_TYPE_LOCAL_SSD &&
instance.Category == api.ALIYUN_DBINSTANCE_CATEGORY_HA) || (instance.EngineVersion == "5.6" && instance.Category == api.ALIYUN_DBINSTANCE_CATEGORY_HA)) {
return httperrors.NewUnsupportOperationError("Aliyun %s only 8.0, 5.7 ha local_ssd or 5.6 ha support recovery from it self backups")
return httperrors.NewUnsupportOperationError("Aliyun %s only 8.0 and 5.7 high_availability local_ssd or 5.6 high_availability support recovery from it self backups", instance.Engine)
}
}
if len(input.Databases) == 0 {