1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

ec2_asg: Retry Autoscaling Group delete calls when scaling activity is in progress (#46124)

* Retry delete calls when scaling activity is in progress

* changelog
This commit is contained in:
Ryan Brown 2018-11-29 08:42:55 -05:00 committed by Sloane Hertel
parent bbab4c1b49
commit 7f7c059a04
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- Retry deleting the autoscaling group if there are scaling activities in progress.

View file

@ -585,7 +585,7 @@ def update_asg(connection, **params):
connection.update_auto_scaling_group(**params)
@AWSRetry.backoff(**backoff_params)
@AWSRetry.backoff(catch_extra_error_codes=['ScalingActivityInProgress'], **backoff_params)
def delete_asg(connection, asg_name, force_delete):
connection.delete_auto_scaling_group(AutoScalingGroupName=asg_name, ForceDelete=force_delete)