retry_interval needs to be a float before passing to time.sleep

This commit is contained in:
Steve Fox 2014-12-01 14:21:52 -06:00
parent 3a80b734e6
commit c03ec202a7

View file

@ -160,7 +160,7 @@ def commit(changes, retry_interval):
code = code.split("</Code>")[0]
if code != 'PriorRequestNotComplete' or retry < 0:
raise e
time.sleep(retry_interval)
time.sleep(float(retry_interval))
def main():
argument_spec = ec2_argument_spec()