Skip to content

Commit

Permalink
Merge pull request #153 from colinbjohnson/moto-152
Browse files Browse the repository at this point in the history
moto-152 - return vpc_id if exists else return no value (None)
  • Loading branch information
spulec committed Jul 25, 2014
2 parents 63799f3 + 853d676 commit cc01669
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion moto/ec2/responses/security_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def revoke_security_group_ingress(self):
<groupId>{{ group.id }}</groupId>
<groupName>{{ group.name }}</groupName>
<groupDescription>{{ group.description }}</groupDescription>
<vpcId>{{ group.vpc_id or ""}}</vpcId>
{% if group.vpc_id %}
<vpcId>{{ group.vpc_id }}</vpcId>
{% endif %}
<ipPermissions>
{% for rule in group.ingress_rules %}
<item>
Expand Down

0 comments on commit cc01669

Please sign in to comment.