diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_eni.py b/lib/ansible/modules/extras/cloud/amazon/ec2_eni.py index 4d08aeb26d0..59a26291388 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_eni.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_eni.py @@ -215,8 +215,8 @@ def create_eni(connection, module): raise # Wait to allow creation / attachment to finish wait_for_eni(eni, "attached") + eni.update() changed = True - eni.update() except BotoServerError as e: module.fail_json(msg=get_error_message(e.args[2]))