Fix security group egress rule outout. Closes #1612
This commit is contained in:
parent
cd59167fce
commit
620530c4ee
@ -1324,7 +1324,7 @@ class SecurityGroup(TaggedEC2Resource):
|
|||||||
self.name = name
|
self.name = name
|
||||||
self.description = description
|
self.description = description
|
||||||
self.ingress_rules = []
|
self.ingress_rules = []
|
||||||
self.egress_rules = [SecurityRule(-1, -1, -1, ['0.0.0.0/0'], [])]
|
self.egress_rules = [SecurityRule(-1, None, None, ['0.0.0.0/0'], [])]
|
||||||
self.enis = {}
|
self.enis = {}
|
||||||
self.vpc_id = vpc_id
|
self.vpc_id = vpc_id
|
||||||
self.owner_id = "123456789012"
|
self.owner_id = "123456789012"
|
||||||
|
@ -179,8 +179,12 @@ DESCRIBE_SECURITY_GROUPS_RESPONSE = """<DescribeSecurityGroupsResponse xmlns="ht
|
|||||||
{% for rule in group.egress_rules %}
|
{% for rule in group.egress_rules %}
|
||||||
<item>
|
<item>
|
||||||
<ipProtocol>{{ rule.ip_protocol }}</ipProtocol>
|
<ipProtocol>{{ rule.ip_protocol }}</ipProtocol>
|
||||||
|
{% if rule.from_port %}
|
||||||
<fromPort>{{ rule.from_port }}</fromPort>
|
<fromPort>{{ rule.from_port }}</fromPort>
|
||||||
|
{% endif %}
|
||||||
|
{% if rule.to_port %}
|
||||||
<toPort>{{ rule.to_port }}</toPort>
|
<toPort>{{ rule.to_port }}</toPort>
|
||||||
|
{% endif %}
|
||||||
<groups>
|
<groups>
|
||||||
{% for source_group in rule.source_groups %}
|
{% for source_group in rule.source_groups %}
|
||||||
<item>
|
<item>
|
||||||
|
Loading…
Reference in New Issue
Block a user