mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Some cleanup for the rds/vpc_security_groups fix
This commit is contained in:
parent
768de238d4
commit
3ac4943751
1 changed files with 5 additions and 4 deletions
|
@ -300,7 +300,7 @@ def main():
|
||||||
multi_zone = dict(type='bool', default=False),
|
multi_zone = dict(type='bool', default=False),
|
||||||
iops = dict(required=False),
|
iops = dict(required=False),
|
||||||
security_groups = dict(required=False),
|
security_groups = dict(required=False),
|
||||||
vpc_security_groups = dict(required=False),
|
vpc_security_groups = dict(type='list', required=False),
|
||||||
port = dict(required=False),
|
port = dict(required=False),
|
||||||
upgrade = dict(type='bool', default=False),
|
upgrade = dict(type='bool', default=False),
|
||||||
option_group = dict(required=False),
|
option_group = dict(required=False),
|
||||||
|
@ -465,9 +465,10 @@ def main():
|
||||||
params["security_groups"] = security_groups.split(',')
|
params["security_groups"] = security_groups.split(',')
|
||||||
|
|
||||||
if vpc_security_groups:
|
if vpc_security_groups:
|
||||||
params["vpc_security_groups"] = [
|
groups_list = []
|
||||||
boto.rds.VPCSecurityGroupMembership(vpc_group=x) if x else None
|
for x in vpc_security_groups:
|
||||||
for x in vpc_security_groups.split(',')]
|
groups_list.append(boto.rds.VPCSecurityGroupMembership(vpc_group=x))
|
||||||
|
params["vpc_security_groups"] = groups_list
|
||||||
|
|
||||||
if new_instance_name:
|
if new_instance_name:
|
||||||
params["new_instance_id"] = new_instance_name
|
params["new_instance_id"] = new_instance_name
|
||||||
|
|
Loading…
Reference in a new issue