From 65c957826419f87c05f92d820bbb95633aa7cb9e Mon Sep 17 00:00:00 2001 From: Joe Hohertz Date: Fri, 1 Feb 2019 15:19:45 -0500 Subject: [PATCH] fix test of ProviderSpecific comparison Signed-off-by: Joe Hohertz --- plan/plan.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plan/plan.go b/plan/plan.go index 9f575451c1..fcd74c6ce6 100644 --- a/plan/plan.go +++ b/plan/plan.go @@ -187,6 +187,9 @@ func shouldUpdateTTL(desired, current *endpoint.Endpoint) bool { } func shouldUpdateProviderSpecific(desired, current *endpoint.Endpoint) bool { + if current.ProviderSpecific == nil && len(desired.ProviderSpecific) == 0 { + return false + } return !cmp.Equal(desired.ProviderSpecific, current.ProviderSpecific) }