diff options
author | Adam Chainz <me@adamj.eu> | 2016-12-05 18:23:53 +0000 |
---|---|---|
committer | Ryan Brown <sb@ryansb.com> | 2016-12-05 13:23:53 -0500 |
commit | fc465fa1e776a1e9d3a7448db0081d3e205ec06e (patch) | |
tree | 85ff85a0b281e6d0d39752f4152533e2ea647e9d | |
parent | 454844931508c20bea270b694f67663586715728 (diff) | |
download | ansible-modules-core-fc465fa1e776a1e9d3a7448db0081d3e205ec06e.tar.gz |
Cloudformation - remove dead invoke_with_throttling_retries function (#5690)
Unused since f040d63403f6c459a278918fa48fa8cb87754506.
-rw-r--r-- | cloud/amazon/cloudformation.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/cloud/amazon/cloudformation.py b/cloud/amazon/cloudformation.py index bdc15613..be20b640 100644 --- a/cloud/amazon/cloudformation.py +++ b/cloud/amazon/cloudformation.py @@ -339,20 +339,6 @@ def get_stack_facts(cfn, stack_name): return stack_info -IGNORE_CODE = 'Throttling' -MAX_RETRIES=3 -def invoke_with_throttling_retries(function_ref, *argv, **kwargs): - retries=0 - while True: - try: - retval=function_ref(*argv, **kwargs) - return retval - except Exception as e: - # boto way of looking for retries - #if e.code != IGNORE_CODE or retries==MAX_RETRIES: - raise e - time.sleep(5 * (2**retries)) - retries += 1 def main(): argument_spec = ansible.module_utils.ec2.ec2_argument_spec() |