Skip to content
Browse files

[CHEF-2338] catch EPERM error thrown under cygwin

  • Loading branch information...
1 parent bfd9a31 commit 415ee1623a2da44c229036d364ce42478fd02933 @schisamo schisamo committed May 13, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/chef/knife/openstack_server_create.rb
View
5 lib/chef/knife/openstack_server_create.rb
@@ -157,9 +157,14 @@ def tcp_test_ssh(hostname)
end
rescue Errno::ETIMEDOUT
false
+ rescue Errno::EPERM
+ false
rescue Errno::ECONNREFUSED
sleep 2
false
+ rescue Errno::EHOSTUNREACH
+ sleep 2
+ false
ensure
tcp_socket && tcp_socket.close
end

0 comments on commit 415ee16

Please sign in to comment.
Something went wrong with that request. Please try again.