From 9864f874d47c5da3306f4bba0ca356b757c38567 Mon Sep 17 00:00:00 2001 From: Sloane Hertel Date: Fri, 27 Apr 2018 12:10:22 -0400 Subject: [PATCH] [aws] Increase possible wait time for nonmonotonic subnet attributes (#38960) --- lib/ansible/modules/cloud/amazon/ec2_vpc_subnet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_vpc_subnet.py b/lib/ansible/modules/cloud/amazon/ec2_vpc_subnet.py index cc13efef609..891c41ccfef 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_vpc_subnet.py +++ b/lib/ansible/modules/cloud/amazon/ec2_vpc_subnet.py @@ -509,7 +509,7 @@ def ensure_subnet_present(conn, module): def ensure_final_subnet(conn, module, subnet, start_time): - for rewait in range(0, 10): + for rewait in range(0, 30): map_public_correct = False assign_ipv6_correct = False @@ -532,7 +532,7 @@ def ensure_final_subnet(conn, module, subnet, start_time): if map_public_correct and assign_ipv6_correct: break - time.sleep(3) + time.sleep(5) subnet = get_matching_subnet(conn, module, module.params['vpc_id'], module.params['cidr']) return subnet