From f970ed011d3ef92018a7f5c8e0b60112e15451e6 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Sun, 26 Oct 2014 22:21:33 +0100 Subject: [PATCH] feature #3180: Raise an exception for not compatible client options --- src/oca/ruby/opennebula/client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/oca/ruby/opennebula/client.rb b/src/oca/ruby/opennebula/client.rb index 42cd9f79b5..c4cf6458f4 100644 --- a/src/oca/ruby/opennebula/client.rb +++ b/src/oca/ruby/opennebula/client.rb @@ -158,7 +158,7 @@ module OpenNebula http = @server.instance_variable_get("@http") if options[:cert_dir] || ENV['ONE_CERT_DIR'] - STDERR.puts "SSL options don't work in async mode" if @async + raise "SSL options don't work in async mode" if @async cert_dir = options[:cert_dir] || ENV['ONE_CERT_DIR'] cert_files = Dir["#{cert_dir}/*"] @@ -171,7 +171,7 @@ module OpenNebula end if options[:disable_ssl_verify] || ENV['ONE_DISABLE_SSL_VERIFY'] - STDERR.puts "SSL options don't work in async mode" if @async + raise "SSL options don't work in async mode" if @async http.verify_mode = OpenSSL::SSL::VERIFY_NONE end