From 3558263487189a4a43488d0fb7d1104994429831 Mon Sep 17 00:00:00 2001 From: Bret Martin Date: Mon, 10 Aug 2015 14:31:46 -0400 Subject: [PATCH] Don't check original_association_ids since it is not set, per comment above --- .../modules/extras/cloud/amazon/ec2_vpc_route_table.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_route_table.py b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_route_table.py index 53164e254d..bb530cb0e9 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_route_table.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_route_table.py @@ -369,11 +369,10 @@ def ensure_propagation(vpc_conn, route_table_id, propagating_vgw_ids, # and do not disable any others. changed = False for vgw_id in propagating_vgw_ids: - if vgw_id not in original_association_ids: - changed = True - vpc_conn.enable_vgw_route_propagation(route_table_id, - vgw_id, - dry_run=check_mode) + changed = True + vpc_conn.enable_vgw_route_propagation(route_table_id, + vgw_id, + dry_run=check_mode) return {'changed': changed}