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] %>'
|
||||
$password = '<%= options[:password] %>'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user