From 64ca63a5604f706c9e30189ee1dc687d5f3c3a2b Mon Sep 17 00:00:00 2001 From: Matt Ray Date: Sat, 26 Jul 2014 22:47:31 -0500 Subject: [PATCH] Clean up Excon::Errors::SocketError::EOFError warning in vcloud_directory Every time I make a connection with the vcloud_director provider I get this warning: /Users/mray/.chgems/vchs/.gem/ruby/2.1.2/gems/fog-1.23.0/lib/fog/vcloud_director/compute.rb:372: warning: toplevel constant EOFError referenced by Excon::Errors::SocketError::EOFError --- lib/fog/vcloud_director/compute.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/vcloud_director/compute.rb b/lib/fog/vcloud_director/compute.rb index 6a2c07f8f..9495faa40 100644 --- a/lib/fog/vcloud_director/compute.rb +++ b/lib/fog/vcloud_director/compute.rb @@ -369,7 +369,7 @@ module Fog def request(params) begin do_request(params) - rescue Excon::Errors::SocketError::EOFError + rescue EOFError # This error can occur if Vcloud receives a request from a network # it deems to be unauthorized; no HTTP response is sent, but the # connection is sent a signal to terminate early.