Just use ready?

This commit is contained in:
Max Lincoln 2014-12-09 13:51:45 -05:00
parent ba7b964b1e
commit 24de8a1fb7
1 changed files with 1 additions and 7 deletions

View File

@ -46,13 +46,7 @@ module VagrantPlugins
message = nil
begin
begin
standard_shell = shell.cmd('echo vagrant')
powershell = shell.cmd('@PowerShell Write-Host vagrant')
unless standard_shell[:exitcode] == 0 || powershell[:exitcode] == 0
raise Errors::InvalidShell
end
return true if shell(true).sane?
return true if ready?
rescue Vagrant::Errors::VagrantError => e
@logger.info("WinRM not ready: #{e.inspect}")
raise