From f4ed4cf7f5b4a7747c46139ad5dd3e34f8e0a93b Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Fri, 9 Oct 2015 19:21:12 +0200 Subject: [PATCH] optimize ping on windows --- lib/resources/host.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/resources/host.rb b/lib/resources/host.rb index 2cef519db..16e5c26b1 100644 --- a/lib/resources/host.rb +++ b/lib/resources/host.rb @@ -116,6 +116,7 @@ class WindowsHostProvider < HostProvider request += " -RemotePort #{port}" unless port.nil? request += '| Select-Object -Property ComputerName, RemoteAddress, RemotePort, SourceAddress, PingSucceeded | ConvertTo-Json' p request + request += '| Select-Object -Property ComputerName, PingSucceeded | ConvertTo-Json' cmd = @vulcano.command(request) begin