From bea107c84191111302dc91e164a7b68d29731d07 Mon Sep 17 00:00:00 2001 From: Katharina Irrgang Date: Wed, 14 Dec 2022 11:53:41 +0100 Subject: [PATCH] fix(aws-fargate): cannot read property 'cpu' of undefined (#671) refs 111063 --- packages/aws-fargate/src/metrics/task/EcsTaskProcessor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws-fargate/src/metrics/task/EcsTaskProcessor.js b/packages/aws-fargate/src/metrics/task/EcsTaskProcessor.js index e76741cb51..2000ef36bf 100644 --- a/packages/aws-fargate/src/metrics/task/EcsTaskProcessor.js +++ b/packages/aws-fargate/src/metrics/task/EcsTaskProcessor.js @@ -38,8 +38,8 @@ class EcsTaskProcessor extends DataProcessor { desiredStatus: metadata.DesiredStatus, knownStatus: metadata.KnownStatus, limits: { - cpu: metadata.Limits.CPU, - memory: metadata.Limits.Memory + cpu: metadata.Limits ? metadata.Limits.CPU : undefined, + memory: metadata.Limits ? metadata.Limits.Memory : undefined }, pullStartedAt: metadata.PullStartedAt, pullStoppedAt: metadata.PullStoppedAt,