From 24de8a1fb7fdc22806bab803745bd37d935cc6be Mon Sep 17 00:00:00 2001 From: Max Lincoln Date: Tue, 9 Dec 2014 13:51:45 -0500 Subject: [PATCH] Just use ready? --- plugins/communicators/winrm/communicator.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/communicators/winrm/communicator.rb b/plugins/communicators/winrm/communicator.rb index e354df5ee..9c02c48c8 100644 --- a/plugins/communicators/winrm/communicator.rb +++ b/plugins/communicators/winrm/communicator.rb @@ -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