From dab0e75ce0a1cf02443818dbf0a0ae6478302dbb Mon Sep 17 00:00:00 2001 From: Sloane Hertel Date: Thu, 30 Mar 2017 14:53:42 -0400 Subject: [PATCH] [cloud] update the local variable route_table with the latest tag changes (#23136) --- lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py b/lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py index fbe739ff029..3055dfa3181 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py +++ b/lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py @@ -590,6 +590,7 @@ def ensure_route_table_present(connection, module): if not tags_valid and tags is not None: result = ensure_tags(connection, route_table.id, tags, add_only=True, check_mode=module.check_mode) + route_table.tags = result['tags'] changed = changed or result['changed'] if subnets: