Skip to content

Commit

Permalink
Fix cast error
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Sep 26, 2017
1 parent 47ea2d7 commit 0498f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/pkg/ingress/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ func (ic *GenericController) syncIngress(key interface{}) error {
// Sort ingress rules using the ResourceVersion field
ings := ic.listers.Ingress.List()
sort.SliceStable(ings, func(i, j int) bool {
ir := ings[i].(*ingress.SSLCert).ResourceVersion
jr := ings[j].(*ingress.SSLCert).ResourceVersion
ir := ings[i].(*extensions.Ingress).ResourceVersion
jr := ings[j].(*extensions.Ingress).ResourceVersion
return ir < jr
})

Expand Down

0 comments on commit 0498f2a

Please sign in to comment.