mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Only wait for ENI attachment at creation when instance_id is specified
This commit is contained in:
@@ -213,9 +213,9 @@ def create_eni(connection, module):
|
|||||||
except BotoServerError as ex:
|
except BotoServerError as ex:
|
||||||
eni.delete()
|
eni.delete()
|
||||||
raise
|
raise
|
||||||
|
# Wait to allow creation / attachment to finish
|
||||||
|
wait_for_eni(eni, "attached")
|
||||||
changed = True
|
changed = True
|
||||||
# Wait to allow creation / attachment to finish
|
|
||||||
wait_for_eni(eni, "attached")
|
|
||||||
eni.update()
|
eni.update()
|
||||||
|
|
||||||
except BotoServerError as e:
|
except BotoServerError as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user