Skip to content

Commit

Permalink
update error message for instanceAlreadyExists (GoogleCloudPlatform#4979
Browse files Browse the repository at this point in the history
)
  • Loading branch information
megan07 authored and khajduczenia committed Oct 12, 2021
1 parent 4445d91 commit 4440617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmv1/third_party/terraform/utils/error_retry_predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ""
}

Expand Down

0 comments on commit 4440617

Please sign in to comment.