From 853d6768ceb520e55c7103950584fa2e1eb679da Mon Sep 17 00:00:00 2001 From: Colin Johnson Date: Fri, 25 Jul 2014 05:16:53 +0000 Subject: [PATCH] moto-152 - return vpc.id if exists else return nothing --- moto/ec2/responses/security_groups.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/moto/ec2/responses/security_groups.py b/moto/ec2/responses/security_groups.py index ed50c796b..2e821f49b 100644 --- a/moto/ec2/responses/security_groups.py +++ b/moto/ec2/responses/security_groups.py @@ -109,7 +109,9 @@ DESCRIBE_SECURITY_GROUPS_RESPONSE = """ + {% if group.vpc_id %} + {{ group.vpc_id }} + {% endif %} {% for rule in group.ingress_rules %}