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

Correct BotoServerError typo in ec2 module

Resolves a traceback due to an undefined 'BotoSeverError' exception.
This commit is contained in:
James Laska 2014-07-26 12:11:25 -04:00
parent f814e4e463
commit d51e10a3f4

View file

@ -923,7 +923,7 @@ def create_instances(module, ec2, override_count=None):
while wait_timeout > time.time() and num_running < len(instids): while wait_timeout > time.time() and num_running < len(instids):
try: try:
res_list = ec2.get_all_instances(instids) res_list = ec2.get_all_instances(instids)
except boto.exception.BotoSeverError, e: except boto.exception.BotoServerError, e:
if e.error_code == 'InvalidInstanceID.NotFound': if e.error_code == 'InvalidInstanceID.NotFound':
time.sleep(1) time.sleep(1)
continue continue