Skip to content

Commit

Permalink
Enhance log of VM skip delete (openshift#260)
Browse files Browse the repository at this point in the history
I deleted 2 machines and one is gone.. this log didn't provide which is skipped.

I0315 07:01:55.409478       1 actuator.go:193] Skipped deleting a VM that is already deleted.
  • Loading branch information
jichenjc authored and pierreprinetti committed Apr 22, 2024
1 parent d2bbdf6 commit 39b46a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloud/openstack/machine/actuator.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (oc *OpenstackClient) Delete(ctx context.Context, cluster *clusterv1.Cluste
}

if instance == nil {
klog.Infof("Skipped deleting a VM that is already deleted.\n")
klog.Infof("Skipped deleting %s that is already deleted.\n", machine.Name)
return nil
}

Expand Down

0 comments on commit 39b46a5

Please sign in to comment.