diff --git a/alicloud/resource_alicloud_dcdn_domain_config.go b/alicloud/resource_alicloud_dcdn_domain_config.go index c57925c1d8be..4bab62d6eb86 100644 --- a/alicloud/resource_alicloud_dcdn_domain_config.go +++ b/alicloud/resource_alicloud_dcdn_domain_config.go @@ -113,7 +113,7 @@ func resourceAliCloudDcdnDomainConfigCreate(d *schema.ResourceData, meta interfa err = resource.Retry(d.Timeout(schema.TimeoutCreate), func() *resource.RetryError { response, err = conn.DoRequest(StringPointer(action), nil, StringPointer("POST"), StringPointer("2018-01-15"), StringPointer("AK"), nil, request, &runtime) if err != nil { - if NeedRetry(err) { + if IsExpectedErrors(err, []string{"FlowControlError"}) || NeedRetry(err) { wait() return resource.RetryableError(err) } @@ -259,7 +259,7 @@ func resourceAliCloudDcdnDomainConfigUpdate(d *schema.ResourceData, meta interfa err = resource.Retry(d.Timeout(schema.TimeoutUpdate), func() *resource.RetryError { response, err = conn.DoRequest(StringPointer(action), nil, StringPointer("POST"), StringPointer("2018-01-15"), StringPointer("AK"), nil, request, &runtime) if err != nil { - if NeedRetry(err) { + if IsExpectedErrors(err, []string{"FlowControlError"}) || NeedRetry(err) { wait() return resource.RetryableError(err) }