Skip to content

Commit

Permalink
Merge pull request #2711 from chrischdi/pr-fix-janitor-task-print
Browse files Browse the repository at this point in the history
🌱 hack/janitor: fix printing task id
  • Loading branch information
k8s-ci-robot authored Feb 6, 2024
2 parents bca6a06 + 36aa13f commit 7baa81e
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 7baa81e

Please sign in to comment.