Skip to content

Commit de8c5a2

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 d98bec8 commit de8c5a2

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
@@ -473,7 +473,7 @@ func (r *OnboardingController) createOrGetTestServer(ctx context.Context, zone,
473473
continue
474474
}
475475
if server.Name != serverName || foundServer != nil {
476-
log.Info("deleting server", "name", server.Name)
476+
log.Info("deleting outdated server", "name", server.Name)
477477
err = servers.Delete(ctx, r.testComputeClient, server.ID).ExtractErr()
478478
if err != nil && !gophercloud.ResponseCodeIs(err, http.StatusNotFound) {
479479
log.Error(err, "failed deleting instance due to", "instance", server.ID)

0 commit comments

Comments
 (0)