Skip to content

Commit

Permalink
pass the ingress in or the 2nd invocation will be used
Browse files Browse the repository at this point in the history
  • Loading branch information
ibawt committed Mar 13, 2017
1 parent 448a42a commit 0fa2a32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/pkg/ingress/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (s *statusSync) updateStatus(newIPs []api.LoadBalancerIngress) {
continue
}

go func(wg *sync.WaitGroup) {
go func(wg *sync.WaitGroup, ing *extensions.Ingress) {
defer wg.Done()
ingClient := s.Client.Extensions().Ingresses(ing.Namespace)
currIng, err := ingClient.Get(ing.Name)
Expand All @@ -274,7 +274,7 @@ func (s *statusSync) updateStatus(newIPs []api.LoadBalancerIngress) {
if err != nil {
glog.Warningf("error updating ingress rule: %v", err)
}
}(&wg)
}(&wg, ing)
}

wg.Wait()
Expand Down

0 comments on commit 0fa2a32

Please sign in to comment.