From 5a5f2f12c7c9f7c1c02e903f178b13872daf813a Mon Sep 17 00:00:00 2001 From: Yann Lambret Date: Fri, 22 Apr 2016 19:12:26 +0200 Subject: [PATCH] Remove useless statement --- moto/ec2/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/moto/ec2/models.py b/moto/ec2/models.py index fc1321b1a..05865e35b 100644 --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -1098,11 +1098,10 @@ class SecurityGroup(TaggedEC2Resource): self.name = name self.description = description self.ingress_rules = [] - self.egress_rules = [] + self.egress_rules = [SecurityRule(-1, -1, -1, ['0.0.0.0/0'], [])] self.enis = {} self.vpc_id = vpc_id self.owner_id = "123456789012" - self.egress_rules.append(SecurityRule(-1, -1, -1, ['0.0.0.0/0'], [])) @classmethod def create_from_cloudformation_json(cls, resource_name, cloudformation_json, region_name):