Skip to content

Commit

Permalink
check number of servers in configuration comparator
Browse files Browse the repository at this point in the history
  • Loading branch information
stibi committed Jul 15, 2017
1 parent d416d02 commit 299d4c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/pkg/ingress/types_equals.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ func (c1 *Configuration) Equal(c2 *Configuration) bool {
}
}

if len(c1.Servers) != len(c2.Servers) {
return false
}

for _, c1s := range c1.Servers {
found := false
for _, c2s := range c2.Servers {
Expand Down

0 comments on commit 299d4c3

Please sign in to comment.