Only wait for ENI attachment at creation when instance_id is specified
This commit is contained in:
parent
3d1a1d58b8
commit
bb9109ebca
1 changed files with 2 additions and 2 deletions
|
@ -213,9 +213,9 @@ def create_eni(connection, module):
|
||||||
except BotoServerError as ex:
|
except BotoServerError as ex:
|
||||||
eni.delete()
|
eni.delete()
|
||||||
raise
|
raise
|
||||||
changed = True
|
|
||||||
# Wait to allow creation / attachment to finish
|
# Wait to allow creation / attachment to finish
|
||||||
wait_for_eni(eni, "attached")
|
wait_for_eni(eni, "attached")
|
||||||
|
changed = True
|
||||||
eni.update()
|
eni.update()
|
||||||
|
|
||||||
except BotoServerError as e:
|
except BotoServerError as e:
|
||||||
|
|
Loading…
Reference in a new issue