Skip to content

Commit

Permalink
fix: infinite loop in SKU iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeldeib committed Jun 18, 2019
1 parent 72b0332 commit c1aa014
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ func (s *Service) Get(ctx context.Context, spec v1alpha1.ResourceSpec) (interfac
}
}
}
err = res.NextWithContext(ctx)
if err != nil {
return zones, errors.Wrap(err, "could not iterate availability zones")
}
}

return zones, nil
Expand Down

0 comments on commit c1aa014

Please sign in to comment.