Skip to content

Commit

Permalink
TMDEv4: change ContainerArn to ContainerARN for consistency with TaskARN
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed Sep 22, 2020
1 parent 29717ce commit abe5e5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion agent/handlers/task_server_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ var (
ImageID: imageID,
DesiredStatus: statusRunning,
KnownStatus: statusRunning,
ContainerArn: "arn:aws:ecs:ap-northnorth-1:NNN:container/NNNNNNNN-aaaa-4444-bbbb-00000000000",
ContainerARN: "arn:aws:ecs:ap-northnorth-1:NNN:container/NNNNNNNN-aaaa-4444-bbbb-00000000000",
Limits: v2.LimitsResponse{
CPU: aws.Float64(cpu),
Memory: aws.Int64(memory),
Expand Down
4 changes: 2 additions & 2 deletions agent/handlers/v2/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type ContainerResponse struct {
Volumes []v1.VolumeResponse `json:"Volumes,omitempty"`
LogDriver string `json:"LogDriver,omitempty"`
LogOptions map[string]string `json:"LogOptions,omitempty"`
ContainerArn string `json:"ContainerArn,omitempty"`
ContainerARN string `json:"ContainerARN,omitempty"`
}

// LimitsResponse defines the schema for task/cpu limits response
Expand Down Expand Up @@ -221,7 +221,7 @@ func newContainerResponse(
if includeV4Metadata {
resp.LogDriver = container.GetLogDriver()
resp.LogOptions = container.GetLogOptions()
resp.ContainerArn = container.ContainerArn
resp.ContainerARN = container.ContainerArn
}

// Write the container health status inside the container
Expand Down

0 comments on commit abe5e5c

Please sign in to comment.