Skip to content

Commit

Permalink
Merge pull request #681 from zaneb/node-delete-log
Browse files Browse the repository at this point in the history
Bug 1878880: Fix confusing log messages about deleting Node
  • Loading branch information
openshift-merge-robot authored Sep 14, 2020
2 parents a682acd + c16e0d3 commit 2b0f59d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/machine/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ func (r *ReconcileMachine) Reconcile(request reconcile.Request) (reconcile.Resul
}

if m.Status.NodeRef != nil {
klog.Infof("%v: deleting node %q for machine", m.Status.NodeRef.Name, machineName)
klog.Infof("%v: deleting node %q for machine", machineName, m.Status.NodeRef.Name)
if err := r.deleteNode(ctx, m.Status.NodeRef.Name); err != nil {
klog.Errorf("%v: error deleting node %q for machine", machineName, err)
klog.Errorf("%v: error deleting node for machine: %v", machineName, err)
return reconcile.Result{}, err
}
}
Expand Down

0 comments on commit 2b0f59d

Please sign in to comment.