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:
parent
699f0e861c
commit
274016101f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue