Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#1024 from joonas/clean-up-error-me…
Browse files Browse the repository at this point in the history
…ssage

Do not include input object in the error message
  • Loading branch information
k8s-ci-robot committed Aug 16, 2019
2 parents 1a8fc74 + ba7a11d commit cad977f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloud/aws/services/ec2/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ func (s *Service) runInstance(role string, i *v1alpha1.Instance, idempotencyToke

out, err := s.scope.EC2.RunInstances(input)
if err != nil {
return nil, errors.Wrapf(err, "failed to run instance: %v", i)
return nil, errors.Wrap(err, "failed to run instance")
}

if len(out.Instances) == 0 {
Expand Down

0 comments on commit cad977f

Please sign in to comment.