Merge pull request #971 from atplanet/bug/vpc-subnet-tag-values-not-updating
Ensure tag values get updated in ec2_vpc_subnet
This commit is contained in:
commit
cde758332a
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ def ensure_tags(vpc_conn, resource_id, tags, add_only, check_mode):
|
||||||
if to_delete and not add_only:
|
if to_delete and not add_only:
|
||||||
vpc_conn.delete_tags(resource_id, to_delete, dry_run=check_mode)
|
vpc_conn.delete_tags(resource_id, to_delete, dry_run=check_mode)
|
||||||
|
|
||||||
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:
|
if to_add:
|
||||||
vpc_conn.create_tags(resource_id, to_add, dry_run=check_mode)
|
vpc_conn.create_tags(resource_id, to_add, dry_run=check_mode)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue