Skip to content

Commit

Permalink
nil fix in MC.updateNodeToMachine (#893)
Browse files Browse the repository at this point in the history
* nil fix in MC.updateNodeToMachine

* fix error log in updateNodeToMachine

---------

Co-authored-by: Rishabh Patel <rishabh.patel@sap.com>
  • Loading branch information
elankath and rishabh-11 authored Jan 9, 2024
1 parent e9c36ff commit c73105b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/provider/machinecontroller/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", node.Name, err)
return
}

Expand Down

0 comments on commit c73105b

Please sign in to comment.