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), az = dict(default=None, required=False),
cidr = dict(default=None, required=True), cidr = dict(default=None, required=True),
state = dict(default='present', choices=['present', 'absent']), 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) vpc_id = dict(default=None, required=True)
) )
) )