Merge pull request #2263 from pecigonzalo/b-powershell-reboot-issue

Add quickfix to restart provisioner as existing one was not working.
This commit is contained in:
Mitchell Hashimoto 2015-06-16 17:46:20 -07:00
commit b8e5ece49c
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import (
"github.com/mitchellh/packer/template/interpolate"
)
var DefaultRestartCommand = "shutdown /r /c \"packer restart\" /t 5 && net stop winrm"
var DefaultRestartCommand = "powershell \"& {Restart-Computer -force }\""
var DefaultRestartCheckCommand = winrm.Powershell(`echo "${env:COMPUTERNAME} restarted."`)
var retryableSleep = 5 * time.Second