Skip to content

Commit

Permalink
fix: infinite loop in SKU iteration (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeldeib authored and k8s-ci-robot committed Jun 18, 2019
1 parent 72b0332 commit 9b553da
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 9b553da

Please sign in to comment.