@@ -18,9 +18,9 @@ import (
1818 "strings"
1919
2020 "github.com/aws/amazon-ecs-cli/ecs-cli/modules/compose/ecs/utils"
21- libcompose "github.com/aws/amazon-ecs-cli/ecs-cli/modules/compose/libcompose"
2221 "github.com/aws/aws-sdk-go/aws"
2322 "github.com/aws/aws-sdk-go/service/ecs"
23+ "github.com/docker/libcompose/project"
2424)
2525
2626// Container is a wrapper around ecsContainer
@@ -98,15 +98,15 @@ func (c *Container) PortString() string {
9898}
9999
100100// convertContainersToInfoSet transforms the list of containers into a formatted set of fields
101- func convertContainersToInfoSet (containers []Container ) libcompose .InfoSet {
102- result := libcompose .InfoSet {}
101+ func convertContainersToInfoSet (containers []Container ) project .InfoSet {
102+ result := project .InfoSet {}
103103 for _ , cont := range containers {
104- info := libcompose .Info {}
104+ info := project .Info {}
105105 // TODO: Add more fields
106- info = append (info , libcompose .InfoPart {"Name" , cont .Name ()})
107- info = append (info , libcompose .InfoPart {"State" , cont .State ()})
108- info = append (info , libcompose .InfoPart {"Ports" , cont .PortString ()})
109- info = append (info , libcompose .InfoPart {"TaskDefinition" , cont .TaskDefinition ()})
106+ info = append (info , project .InfoPart {"Name" , cont .Name ()})
107+ info = append (info , project .InfoPart {"State" , cont .State ()})
108+ info = append (info , project .InfoPart {"Ports" , cont .PortString ()})
109+ info = append (info , project .InfoPart {"TaskDefinition" , cont .TaskDefinition ()})
110110 result = append (result , info )
111111 }
112112 return result
0 commit comments