Only wait for ENI attachment at creation when instance_id is specified

reviewable/pr18780/r1
Bret Martin 9 years ago
parent a55dbb717c
commit e5fdbc25a2

@ -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:

Loading…
Cancel
Save