From c20a25054a124d2111049563689b8c9297f41e80 Mon Sep 17 00:00:00 2001 From: elankath Date: Fri, 5 Jan 2024 17:09:39 +0530 Subject: [PATCH 1/2] nil fix in MC.updateNodeToMachine --- pkg/util/provider/machinecontroller/machine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/provider/machinecontroller/machine.go b/pkg/util/provider/machinecontroller/machine.go index e28c9e9b4..c5701289f 100644 --- a/pkg/util/provider/machinecontroller/machine.go +++ b/pkg/util/provider/machinecontroller/machine.go @@ -257,7 +257,7 @@ func (c *controller) updateNodeToMachine(oldObj, newObj interface{}) { machine, err := c.getMachineFromNode(node.Name) if err != nil { - klog.Errorf("Unable to handle update event for node %s, couldn't fetch machine %s, Error: %s", machine.Name, err) + klog.Errorf("Unable to handle update event for node %s, couldn't fetch associated machine. Error: %s", err) return } From 5cac501eb53f7139e9837b87ce159e9a16919cc4 Mon Sep 17 00:00:00 2001 From: Rishabh Patel Date: Tue, 9 Jan 2024 10:21:29 +0530 Subject: [PATCH 2/2] fix error log in updateNodeToMachine --- pkg/util/provider/machinecontroller/machine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/provider/machinecontroller/machine.go b/pkg/util/provider/machinecontroller/machine.go index c5701289f..6a8929eff 100644 --- a/pkg/util/provider/machinecontroller/machine.go +++ b/pkg/util/provider/machinecontroller/machine.go @@ -257,7 +257,7 @@ func (c *controller) updateNodeToMachine(oldObj, newObj interface{}) { machine, err := c.getMachineFromNode(node.Name) if err != nil { - klog.Errorf("Unable to handle update event for node %s, couldn't fetch associated machine. Error: %s", err) + klog.Errorf("Unable to handle update event for node %s, couldn't fetch associated machine. Error: %s", node.Name, err) return }