Skip to content

Commit c8985cc

Browse files
authored
fix: as - clear as retry capture (#1188)
1 parent 78e051d commit c8985cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tencentcloud/resource_tc_as_scaling_group.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,11 @@ func resourceTencentCloudAsScalingGroupDelete(d *schema.ResourceData, meta inter
730730
}
731731
if *scalingGroup.InstanceCount > 0 || *scalingGroup.DesiredCapacity > 0 {
732732
if err := resource.Retry(writeRetryTimeout, func() *resource.RetryError {
733-
return retryError(asService.ClearScalingGroupInstance(ctx, scalingGroupId))
733+
inErr := asService.ClearScalingGroupInstance(ctx, scalingGroupId)
734+
if inErr != nil {
735+
return retryError(inErr)
736+
}
737+
return nil
734738
}); err != nil {
735739
return err
736740
}

0 commit comments

Comments
 (0)