mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
boto only returns tags in the described security group if they exist (#26053)
This commit is contained in:
parent
0e0b91534a
commit
3ba4fc2d54
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ def main():
|
|||
# Modify boto3 tags list to be ansible friendly dict
|
||||
# but don't camel case tags
|
||||
security_group = camel_dict_to_snake_dict(security_group)
|
||||
security_group['tags'] = boto3_tag_list_to_ansible_dict(security_group['tags'], tag_name_key_name='key', tag_value_key_name='value')
|
||||
security_group['tags'] = boto3_tag_list_to_ansible_dict(security_group.get('tags', {}), tag_name_key_name='key', tag_value_key_name='value')
|
||||
snaked_security_groups.append(security_group)
|
||||
|
||||
module.exit_json(security_groups=snaked_security_groups)
|
||||
|
|
Loading…
Reference in a new issue