1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Don't check original_association_ids since it is not set, per comment above

This commit is contained in:
Bret Martin 2015-08-10 14:31:46 -04:00 committed by Matt Clay
parent e741e5a002
commit 3558263487

View file

@ -369,11 +369,10 @@ def ensure_propagation(vpc_conn, route_table_id, propagating_vgw_ids,
# and do not disable any others. # and do not disable any others.
changed = False changed = False
for vgw_id in propagating_vgw_ids: for vgw_id in propagating_vgw_ids:
if vgw_id not in original_association_ids: changed = True
changed = True vpc_conn.enable_vgw_route_propagation(route_table_id,
vpc_conn.enable_vgw_route_propagation(route_table_id, vgw_id,
vgw_id, dry_run=check_mode)
dry_run=check_mode)
return {'changed': changed} return {'changed': changed}