Fix kinesis_stream wait loop pause. (#64283)

This commit is contained in:
Jason Pepper 2019-11-14 10:53:01 -05:00 committed by Jill R
parent fbdd295cef
commit d6a51807cd

View file

@ -436,16 +436,16 @@ def wait_for_status(client, stream_name, status, wait_timeout=300,
status_achieved = True
break
elif status == 'DELETING' and not check_mode:
else:
if not find_success:
status_achieved = True
break
else:
time.sleep(polling_increment_secs)
except botocore.exceptions.ClientError as e:
err_msg = to_native(e)
time.sleep(polling_increment_secs)
if not status_achieved:
err_msg = "Wait time out reached, while waiting for results"
else: