Only wait for ENI attachment at creation when instance_id is specified

This commit is contained in:
Bret Martin 2015-09-06 22:00:02 -04:00 committed by Matt Clay
parent 3d1a1d58b8
commit bb9109ebca

View file

@ -213,9 +213,9 @@ def create_eni(connection, module):
except BotoServerError as ex:
eni.delete()
raise
# Wait to allow creation / attachment to finish
wait_for_eni(eni, "attached")
changed = True
# Wait to allow creation / attachment to finish
wait_for_eni(eni, "attached")
eni.update()
except BotoServerError as e: