Merge pull request #3922 from mitchellh/fix-issue-3918

communicator/winrm: proper exit code for powershell
This commit is contained in:
Mitchell Hashimoto 2014-05-28 13:06:08 -07:00
commit 2eb6adae32
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
$command = "<%= options[:command] %>"
$command = "<%= options[:command] %>" + '; exit $LASTEXITCODE'
$user = '<%= options[:username] %>'
$password = '<%= options[:password] %>'