Skip to content

Commit

Permalink
hack/janitor: fix printing task id
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Feb 6, 2024
1 parent cb271af commit 36aa13f
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 36aa13f

Please sign in to comment.