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 authored and tuxtof committed Jul 5, 2024
1 parent 9a407aa commit 1e011aa
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 1e011aa

Please sign in to comment.