From edfe99b5ce22b3a11f2fd4ee0747c3207ac9b605 Mon Sep 17 00:00:00 2001 From: Evan Carter Date: Thu, 10 Sep 2015 15:23:57 -0400 Subject: [PATCH] fixing hang after creation --- lib/ansible/modules/extras/cloud/amazon/ec2_eni.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_eni.py b/lib/ansible/modules/extras/cloud/amazon/ec2_eni.py index 4d08aeb26d..59a2629138 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]))