mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Leave current secutiry groups as-is if not provided (#19043)
This commit is contained in:
parent
1d80f5cf0f
commit
7b4eb078c6
1 changed files with 7 additions and 6 deletions
|
@ -397,12 +397,13 @@ class ElastiCacheManager(object):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# check vpc security groups
|
# check vpc security groups
|
||||||
vpc_security_groups = []
|
if len(self.security_group_ids) > 0:
|
||||||
security_groups = self.data['SecurityGroups'] or []
|
vpc_security_groups = []
|
||||||
for sg in security_groups:
|
security_groups = self.data['SecurityGroups'] or []
|
||||||
vpc_security_groups.append(sg['SecurityGroupId'])
|
for sg in security_groups:
|
||||||
if set(vpc_security_groups) != set(self.security_group_ids):
|
vpc_security_groups.append(sg['SecurityGroupId'])
|
||||||
return True
|
if set(vpc_security_groups) != set(self.security_group_ids):
|
||||||
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue