From fa9e1fd384a43215bc693d04efad5e8c3b4350fd Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Sun, 13 Sep 2015 15:37:23 +0000 Subject: [PATCH] Ensure tag values get updated in ec2_vpc_subnet --- lib/ansible/modules/extras/cloud/amazon/ec2_vpc_subnet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_subnet.py b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_subnet.py index c08635bc8c..c740366047 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_subnet.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_subnet.py @@ -163,7 +163,7 @@ def ensure_tags(vpc_conn, resource_id, tags, add_only, dry_run): if to_delete and not add_only: vpc_conn.delete_tags(resource_id, to_delete, dry_run=dry_run) - to_add = dict((k, tags[k]) for k in tags if k not in cur_tags) + to_add = dict((k, tags[k]) for k in tags if k not in cur_tags or cur_tags[k] != tags[k]) if to_add: vpc_conn.create_tags(resource_id, to_add, dry_run=dry_run)