Skip to content

Commit

Permalink
Fix pointer loop var. (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
angulito authored and chicofranchico committed Oct 9, 2018
1 parent bbb200c commit 7407810
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func AddContainerInstancesToTasks(svc *ecs.ECS, svcec2 *ec2.EC2, taskList []*Aug
}
instance, ok := instanceIDToEC2Instance[*containerInstance.Ec2InstanceId]
if !ok {
log.Printf("Cannot find EC2 instance", *containerInstance.Ec2InstanceId)
log.Printf("Cannot find EC2 instance %s", *containerInstance.Ec2InstanceId)
continue
}
task.EC2Instance = instance
Expand Down Expand Up @@ -498,8 +498,8 @@ func GetAugmentedTasks(svc *ecs.ECS, svcec2 *ec2.EC2, clusterArns []*string) ([]
}

tasks := []*AugmentedTask{}
for _, t := range simpleTasks {
tasks = append(tasks, &AugmentedTask{&t, nil, nil})
for i := 0; i < len(simpleTasks); i++ {
tasks = append(tasks, &AugmentedTask{&simpleTasks[i], nil, nil})
}
tasks, err = AddTaskDefinitionsOfTasks(svc, tasks)
if err != nil {
Expand Down

0 comments on commit 7407810

Please sign in to comment.