Skip to content

Commit e59a74b

Browse files
committed
Onboarding: Use unique log message for localising text
The log message was the same as in another delete case, and that makes it hard to identify where it gets deleted.
1 parent 0ee2627 commit e59a74b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/onboarding_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ func (r *OnboardingController) createOrGetTestServer(ctx context.Context, zone,
474474
continue
475475
}
476476
if server.Name != serverName || foundServer != nil {
477-
log.Info("deleting server", "name", server.Name)
477+
log.Info("deleting outdated server", "name", server.Name)
478478
err = servers.Delete(ctx, r.testComputeClient, server.ID).ExtractErr()
479479
if err != nil && !gophercloud.ResponseCodeIs(err, http.StatusNotFound) {
480480
log.Error(err, "failed deleting instance due to", "instance", server.ID)

0 commit comments

Comments
 (0)