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

Adds the check for 'not None' also when building host_info dict for ElastiCache clusters, nodes and replication groups

This commit is contained in:
Victor Schröder 2015-06-29 23:28:55 +02:00
parent d88a42570e
commit df77d087a5

View file

@ -1117,6 +1117,10 @@ class Ec2Inventory(object):
# Target: Almost everything
elif key == 'ec2_security_groups':
# Skip if SecurityGroups is None
# (it is possible to have the key defined but no value in it).
if value is not None:
sg_ids = []
for sg in value:
sg_ids.append(sg['SecurityGroupId'])