summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSloane Hertel <shertel@redhat.com>2017-09-13 22:30:09 -0400
committerJordan Borean <jborean93@gmail.com>2017-09-14 12:30:09 +1000
commite8e2c5a9f7b2fcbe55664b576f38976bea8f7883 (patch)
tree5c5726ad8cb6d7bfc2d91c1754c285ba71837f17
parent01cbdb98782de1e30f88fb4da09baa48208d9d91 (diff)
downloadansible-e8e2c5a9f7b2fcbe55664b576f38976bea8f7883.tar.gz
[cloud] update the local variable route_table with the latest tag changes (#23136) (#29989)
-rw-r--r--lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py1
1 files changed, 1 insertions, 0 deletions
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 c0e9c28087..59c6746676 100644
--- a/lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py
+++ b/lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py
@@ -589,6 +589,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: