Skip to content

Commit

Permalink
fix: truncated containers
Browse files Browse the repository at this point in the history
  • Loading branch information
jedipunkz committed Oct 5, 2024
1 parent 8fdc5ce commit ba4a829
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 ba4a829

Please sign in to comment.