Skip to content

Commit

Permalink
fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Fitzwater - IDI-C committed Jun 23, 2020
1 parent a535128 commit 02aa9b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambda/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ func (a *App) createEC2(cfg client.ConfigProvider, userData string) (*ec2.Instan

id := output.Instances[0].InstanceId

resp, err := svc.WaitUntilSystemStatusOk(&ec2.DescribeInstanceStatusInput{InstanceIds: aws.StringSlice(id)})
err = svc.WaitUntilSystemStatusOk(&ec2.DescribeInstanceStatusInput{InstanceIds: []*string{id}})
if err != nil {
return output.Instance[0], fmt.Errorf("failed to get status of instance(s) %v: %v", id, err)
return output.Instances[0], fmt.Errorf("failed to get status of instance(s) %v: %v", id, err)
}

return output.Instances[0], nil
Expand Down

0 comments on commit 02aa9b9

Please sign in to comment.