mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Leave current secutiry groups as-is if not provided (#19043)
This commit is contained in:
committed by
Ryan Brown
parent
1d80f5cf0f
commit
7b4eb078c6
@@ -397,12 +397,13 @@ class ElastiCacheManager(object):
|
||||
return True
|
||||
|
||||
# check vpc security groups
|
||||
vpc_security_groups = []
|
||||
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
|
||||
if len(self.security_group_ids) > 0:
|
||||
vpc_security_groups = []
|
||||
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
|
||||
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user