Skip to content

Commit

Permalink
Fix output for Service Subnets
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPreston committed Jun 19, 2024
1 parent 1dc7371 commit 9f35e0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ecs_composex/ecs/ecs_family/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ def generate_outputs(self):
Value=Ref(self.service_networking.security_group.parameter.title),
)
)
if ecs_params.SERVICE_SUBNETS.title in self.stack.stack_template.parameters:
if self.service_networking.subnets_output and isinstance(
self.service_networking.subnets_output, Ref
):
self.outputs.append(
CfnOutput(
ecs_params.SERVICE_SUBNETS.title,
Expand Down

0 comments on commit 9f35e0e

Please sign in to comment.