From fac9a64d23347f748d37343b777d5ffd5f8ce626 Mon Sep 17 00:00:00 2001 From: evanccopengeo Date: Tue, 3 Jun 2014 14:25:48 -0400 Subject: [PATCH 1/2] fixing problem where ansible would error out because Amazon was saying the group didnt exist yet (needed to wait a few more seconds for amazon to propagate correctly) --- library/cloud/ec2_group | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/cloud/ec2_group b/library/cloud/ec2_group index 5e42e861f48..b553900593e 100644 --- a/library/cloud/ec2_group +++ b/library/cloud/ec2_group @@ -230,6 +230,10 @@ def main(): # to 0.0.0.0/0 is added automatically but it's not # reflected in the object returned by the AWS API # call. We re-read the group for getting an updated object + # amazon sometimes takes a couple seconds to update the security group so wait till it exists + while len(ec2.get_all_security_groups(filters={ 'group_id': group.id, })) == 0: + time.sleep(0.1) + group = ec2.get_all_security_groups(group_ids=(group.id,))[0] changed = True else: From 2e9cfaaba3a6ae55ac316d95fee329d9c382e189 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 6 Jun 2014 09:24:33 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c6ecdecb22..06798dceb0c 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,8 @@ Branch Info Author ====== -Michael DeHaan -- michael@ansible.com +Ansible was created by Michael DeHaan (michael@ansible.com) and has contributions from over +700 users (and growing). Thanks everyone! [Ansible, Inc](http://ansible.com)