From 730766cd990383ed4663dc3e82c5a50c1dac9b51 Mon Sep 17 00:00:00 2001 From: Joseph Irving Date: Tue, 3 Mar 2020 10:14:40 +0000 Subject: [PATCH] handler: fix use of copy instead of node copy (#22) --- pkg/nidhogg/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/nidhogg/handler.go b/pkg/nidhogg/handler.go index a65a597..aa694f4 100644 --- a/pkg/nidhogg/handler.go +++ b/pkg/nidhogg/handler.go @@ -117,8 +117,8 @@ func (h *Handler) HandleNode(instance *corev1.Node) (reconcile.Result, error) { } else { firstTimeReady = nodeCopy.Annotations[annotationFirstTimeReady] } - } else if copy.Annotations != nil { - firstTimeReady = copy.Annotations[annotationFirstTimeReady] + } else if nodeCopy.Annotations != nil { + firstTimeReady = nodeCopy.Annotations[annotationFirstTimeReady] } if !reflect.DeepEqual(nodeCopy, instance) {