Cloudformation - remove dead invoke_with_throttling_retries function (#5690)

Unused since f040d63403f6c459a278918fa48fa8cb87754506.
This commit is contained in:
Adam Chainz 2016-12-05 18:23:53 +00:00 committed by Matt Clay
parent 5edbbabe0b
commit 46ca2b8bcd

View file

@ -348,20 +348,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()