Just use ready?
This commit is contained in:
parent
ba7b964b1e
commit
24de8a1fb7
|
@ -46,13 +46,7 @@ module VagrantPlugins
|
||||||
message = nil
|
message = nil
|
||||||
begin
|
begin
|
||||||
begin
|
begin
|
||||||
standard_shell = shell.cmd('echo vagrant')
|
return true if ready?
|
||||||
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?
|
|
||||||
rescue Vagrant::Errors::VagrantError => e
|
rescue Vagrant::Errors::VagrantError => e
|
||||||
@logger.info("WinRM not ready: #{e.inspect}")
|
@logger.info("WinRM not ready: #{e.inspect}")
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue