Skip to content

Commit

Permalink
fix test of ProviderSpecific comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Hohertz <[email protected]>
  • Loading branch information
Joe Hohertz committed Feb 1, 2019
1 parent a2f5c57 commit 65c9578
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plan/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 65c9578

Please sign in to comment.