Skip to content

Commit 39b46a5

Browse files
jichenjcpierreprinetti
authored andcommitted
Enhance log of VM skip delete (openshift#260)
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.
1 parent d2bbdf6 commit 39b46a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cloud/openstack/machine/actuator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func (oc *OpenstackClient) Delete(ctx context.Context, cluster *clusterv1.Cluste
187187
}
188188

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

0 commit comments

Comments
 (0)