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

ec2_vpc_subnet: cope with empty tags (#21813)

ensure_tags fails if `tags` is None rather than an empty
dict. Ensure that not passing `tags` parameter is equivalent
to passing an empty dict.

Fixes #21778
This commit is contained in:
Will Thames 2017-03-04 04:47:29 +10:00 committed by Ryan Brown
parent 699f0e861c
commit 274016101f

View file

@ -233,7 +233,7 @@ def main():
az = dict(default=None, required=False),
cidr = dict(default=None, required=True),
state = dict(default='present', choices=['present', 'absent']),
tags = dict(default=None, required=False, type='dict', aliases=['resource_tags']),
tags = dict(default={}, required=False, type='dict', aliases=['resource_tags']),
vpc_id = dict(default=None, required=True)
)
)