From 299d4c373c06e2bd5fb549b83573eece4667c9bb Mon Sep 17 00:00:00 2001 From: Martin Stiborsky Date: Sat, 15 Jul 2017 17:40:28 +0200 Subject: [PATCH] check number of servers in configuration comparator --- core/pkg/ingress/types_equals.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/pkg/ingress/types_equals.go b/core/pkg/ingress/types_equals.go index 3d9633d80..a670d6a9e 100644 --- a/core/pkg/ingress/types_equals.go +++ b/core/pkg/ingress/types_equals.go @@ -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 {