From 4440617b09c98df64b52446aafc36965057a9bca Mon Sep 17 00:00:00 2001 From: megan07 Date: Mon, 19 Jul 2021 15:28:40 -0500 Subject: [PATCH] update error message for instanceAlreadyExists (#4979) --- mmv1/third_party/terraform/utils/error_retry_predicates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmv1/third_party/terraform/utils/error_retry_predicates.go b/mmv1/third_party/terraform/utils/error_retry_predicates.go index 020dc8cf3254..8f4c933310e4 100644 --- a/mmv1/third_party/terraform/utils/error_retry_predicates.go +++ b/mmv1/third_party/terraform/utils/error_retry_predicates.go @@ -182,7 +182,7 @@ func isSqlInternalError(err error) (bool, string) { // concurrent operations. func isSqlOperationInProgressError(err error) (bool, string) { if gerr, ok := err.(*googleapi.Error); ok && gerr.Code == 409 { - if strings.Contains(gerr.Body, "you cannot reuse the name of the deleted instance until one week from the deletion date.") { + if strings.Contains(gerr.Body, "instanceAlreadyExists") { return false, "" }