Fix security group ingress authorization for all protocols with no port spec

This commit is contained in:
Adam Romanek 2016-04-26 10:53:18 +02:00 committed by Adam Romanek
commit b32fbf090a
2 changed files with 17 additions and 0 deletions

View file

@ -111,8 +111,12 @@ DESCRIBE_SECURITY_GROUPS_RESPONSE = """<DescribeSecurityGroupsResponse xmlns="ht
{% for rule in group.ingress_rules %}
<item>
<ipProtocol>{{ rule.ip_protocol }}</ipProtocol>
{% if rule.from_port %}
<fromPort>{{ rule.from_port }}</fromPort>
{% endif %}
{% if rule.to_port %}
<toPort>{{ rule.to_port }}</toPort>
{% endif %}
<groups>
{% for source_group in rule.source_groups %}
<item>