Skip to content

Commit

Permalink
fix: panic during power off
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq committed Jun 6, 2024
1 parent c6fff57 commit 8fc3e1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builder/nutanix/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,9 @@ func (d *NutanixDriver) PowerOff(vmUUID string) error {
<-time.After(1 * time.Second)
continue
}
return fmt.Errorf("error while GetTask, %s", err.Error())
if err != nil {
return fmt.Errorf("error while GetTask, %s", err.Error())
}
}

log.Printf("PowerOff task: %s", taskUUID)
Expand Down

0 comments on commit 8fc3e1d

Please sign in to comment.