mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
ec2_vpc_nacl: Don't default name into Name unless able (#48889)
This fixes ansible/ansible#issues/48832
This commit is contained in:
parent
1e0ab16247
commit
571749f3ed
1 changed files with 2 additions and 1 deletions
|
@ -252,7 +252,8 @@ def tags_changed(nacl_id, client, module):
|
||||||
tags = dict()
|
tags = dict()
|
||||||
if module.params.get('tags'):
|
if module.params.get('tags'):
|
||||||
tags = module.params.get('tags')
|
tags = module.params.get('tags')
|
||||||
tags['Name'] = module.params.get('name')
|
if module.params.get('name') and not tags.get('Name'):
|
||||||
|
tags['Name'] = module.params['name']
|
||||||
nacl = find_acl_by_id(nacl_id, client, module)
|
nacl = find_acl_by_id(nacl_id, client, module)
|
||||||
if nacl['NetworkAcls']:
|
if nacl['NetworkAcls']:
|
||||||
nacl_values = [t.values() for t in nacl['NetworkAcls'][0]['Tags']]
|
nacl_values = [t.values() for t in nacl['NetworkAcls'][0]['Tags']]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue