Skip to content

Commit 636d2c4

Browse files
RadekRadek
authored andcommitted
rebase needed
1 parent 1418204 commit 636d2c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk-lib/aws-ecs/lib/base/task-definition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ export class TaskDefinition extends TaskDefinitionBase {
487487
assumedBy: new iam.ServicePrincipal('ecs-tasks.amazonaws.com'),
488488
});
489489

490-
if (props.inferenceAccelerators) {
490+
if (props.inferenceAccelerators && props.inferenceAccelerators.length > 0) {
491491
props.inferenceAccelerators.forEach(ia => this.addInferenceAccelerator(ia));
492492
}
493493

0 commit comments

Comments
 (0)