Skip to content

Commit

Permalink
resource/alicloud_resource_manager_control_policy_attachment: : Added…
Browse files Browse the repository at this point in the history
… retry strategy for error code (#8125)
  • Loading branch information
MrWolong authored Jan 16, 2025
1 parent e60bc99 commit b5a6eef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func resourceAliCloudResourceManagerControlPolicyAttachmentDelete(d *schema.Reso
err = resource.Retry(d.Timeout(schema.TimeoutDelete), func() *resource.RetryError {
response, err = conn.DoRequest(StringPointer(action), nil, StringPointer("POST"), StringPointer("2020-03-31"), StringPointer("AK"), nil, request, &runtime)
if err != nil {
if NeedRetry(err) {
if IsExpectedErrors(err, []string{"ConcurrentCallNotSupported"}) || NeedRetry(err) {
wait()
return resource.RetryableError(err)
}
Expand Down

0 comments on commit b5a6eef

Please sign in to comment.