Merge pull request #3922 from mitchellh/fix-issue-3918
communicator/winrm: proper exit code for powershell
This commit is contained in:
commit
2eb6adae32
|
@ -1,4 +1,4 @@
|
||||||
$command = "<%= options[:command] %>"
|
$command = "<%= options[:command] %>" + '; exit $LASTEXITCODE'
|
||||||
$user = '<%= options[:username] %>'
|
$user = '<%= options[:username] %>'
|
||||||
$password = '<%= options[:password] %>'
|
$password = '<%= options[:password] %>'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue