Skip to content

Commit

Permalink
fix(aws-fargate): cannot read property 'cpu' of undefined (#671)
Browse files Browse the repository at this point in the history
refs 111063
  • Loading branch information
kirrg001 authored Dec 14, 2022
1 parent 5b0efc5 commit bea107c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/aws-fargate/src/metrics/task/EcsTaskProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bea107c

Please sign in to comment.