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

Ignore an already-scheduled reboot
This commit is contained in:
Adrien Delorme 2018-12-07 11:03:55 +01:00 committed by GitHub
commit 2283efff79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}