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

Merge pull request #6965 from mjschultz/fix-6964

cloud/elasticache: Ensure self.data is iterable
This commit is contained in:
Michael DeHaan 2014-04-14 11:17:54 -04:00
commit 9210a96825

View file

@ -395,7 +395,8 @@ class ElastiCacheManager(object):
# check vpc security groups
vpc_security_groups = []
for sg in self.data['SecurityGroups']:
security_groups = self.data['SecurityGroups'] or []
for sg in security_groups:
vpc_security_groups.append(sg['SecurityGroupId'])
if set(vpc_security_groups) - set(self.security_group_ids):
return True