Skip to content

Commit 310acf4

Browse files
authored
fix cfn security group read (#12414)
1 parent 632fca9 commit 310acf4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

localstack-core/localstack/services/ec2/resource_providers/aws_ec2_securitygroup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ def model_from_description(sg_description: dict) -> dict:
6565
"GroupDescription": sg_description.get("Description"),
6666
"SecurityGroupEgress": [],
6767
"SecurityGroupIngress": [],
68-
"Tags": sg_description.get("Tags", []),
6968
}
69+
if tags := sg_description.get("Tags"):
70+
model["Tags"] = tags
7071

7172
for i, egress in enumerate(sg_description.get("IpPermissionsEgress", [])):
7273
for ip_range in egress.get("IpRanges", []):

0 commit comments

Comments
 (0)