When adding security group rules, allow a source group only to be specified - as per boto docs & functionality
This commit is contained in:
parent
849f6f57d4
commit
e07894c6e4
@ -9,9 +9,9 @@ def process_rules_from_querystring(querystring):
|
|||||||
except:
|
except:
|
||||||
group_name_or_id = querystring.get('GroupId')[0]
|
group_name_or_id = querystring.get('GroupId')[0]
|
||||||
|
|
||||||
ip_protocol = querystring.get('IpPermissions.1.IpProtocol')[0]
|
ip_protocol = querystring.get('IpPermissions.1.IpProtocol', [None])[0]
|
||||||
from_port = querystring.get('IpPermissions.1.FromPort')[0]
|
from_port = querystring.get('IpPermissions.1.FromPort', [None])[0]
|
||||||
to_port = querystring.get('IpPermissions.1.ToPort')[0]
|
to_port = querystring.get('IpPermissions.1.ToPort', [None])[0]
|
||||||
ip_ranges = []
|
ip_ranges = []
|
||||||
for key, value in querystring.items():
|
for key, value in querystring.items():
|
||||||
if 'IpPermissions.1.IpRanges' in key:
|
if 'IpPermissions.1.IpRanges' in key:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user