Skip to content

Commit

Permalink
Merge pull request #199 from jedipunkz/fix/aws-sdk-go-v2
Browse files Browse the repository at this point in the history
fix: truncated containers
  • Loading branch information
jedipunkz authored Oct 5, 2024
2 parents 8fdc5ce + ba4a829 commit 748cf06
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ func runLoginCmd(cmd *cobra.Command, args []string) {
log.Fatal(err)
}

ecsResource := myecs.ECSResource{
Clusters: []myecs.Cluster{cluster},
Services: []myecs.Service{service},
Tasks: []myecs.Task{task},
Containers: e.Containers,
for _, container := range e.Containers {
ecsResource := myecs.ECSResource{
Clusters: []myecs.Cluster{cluster},
Services: []myecs.Service{service},
Tasks: []myecs.Task{task},
Containers: []myecs.Container{container},
}
ecsResources = append(ecsResources, ecsResource)
}
ecsResources = append(ecsResources, ecsResource)
}
}
}
Expand Down

0 comments on commit 748cf06

Please sign in to comment.