From 41036799b9f41d43236c74bc267afc8d0618a5c2 Mon Sep 17 00:00:00 2001 From: Jack Scheible Date: Mon, 16 Oct 2023 15:44:23 -0400 Subject: [PATCH] Update ec2_vpc_net.py to allow setting `ipv6_cidr: false` in task. Module will fail if `ipv6_cidr: false` is set in task. This change fixes that bug. --- plugins/modules/ec2_vpc_net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/ec2_vpc_net.py b/plugins/modules/ec2_vpc_net.py index 794a49fe91c..e886ca6d45e 100644 --- a/plugins/modules/ec2_vpc_net.py +++ b/plugins/modules/ec2_vpc_net.py @@ -384,7 +384,7 @@ def wait_for_vpc_ipv6_state(module, connection, vpc_id, ipv6_assoc_state): If ipv6_assoc_state is False, wait for VPC to be dissociated from all Amazon-provided IPv6 CIDR blocks. """ - if ipv6_assoc_state is None: + if not ipv6_assoc_state: return if module.check_mode: return