Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
handler: fix use of copy instead of node copy (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph-Irving authored Mar 3, 2020
1 parent bc33c2a commit 730766c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/nidhogg/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 730766c

Please sign in to comment.