Merge pull request #7071 from aspectcapital/ignore-pending-reboots

Ignore an already-scheduled reboot
pull/7084/head
Adrien Delorme 7 years ago committed by GitHub
commit 2283efff79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -96,7 +96,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
return err
}
if cmd.ExitStatus != 0 {
if cmd.ExitStatus != 0 && cmd.ExitStatus != 1115 && cmd.ExitStatus != 1190 {
return fmt.Errorf("Restart script exited with non-zero exit status: %d", cmd.ExitStatus)
}

Loading…
Cancel
Save