Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 hack/janitor: fix printing task id #2711

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hack/tools/janitor/janitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (s *janitor) deleteVSphereVMs(ctx context.Context, folder string) error {
if err != nil {
return err
}
log.Info("Created PowerOff task for VM", "vm", vm.managedObject.Config.Name, "task", task.Name())
log.Info("Created PowerOff task for VM", "vm", vm.managedObject.Config.Name, "task", task.Reference().Value)
poweroffTasks = append(poweroffTasks, task)
}
// Wait for all PowerOff tasks to be finished. We intentionally ignore errors here
Expand All @@ -151,7 +151,7 @@ func (s *janitor) deleteVSphereVMs(ctx context.Context, folder string) error {
if err != nil {
return err
}
log.Info("Created Destroy task for VM", "vm", vm.managedObject.Config.Name, "task", task.Name())
log.Info("Created Destroy task for VM", "vm", vm.managedObject.Config.Name, "task", task.Reference().Value)
destroyTasks = append(destroyTasks, task)
}
// Wait for all destroy tasks to succeed.
Expand Down
Loading