From 536def0c75fad455835691c0ed0605cc8090e91f Mon Sep 17 00:00:00 2001 From: Juan Hernandez Date: Fri, 3 Mar 2017 13:17:28 +0100 Subject: [PATCH] Set 'https' as the default protocol when using oVirt SDK This patch changes the oVirt provider so that it uses 'https' by default as the protocol when using the oVirt SDK to talk to the oVirt engine. Signed-off-by: Juan Hernandez --- .../manageiq/providers/redhat/infra_manager/api_integration.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/manageiq/providers/redhat/infra_manager/api_integration.rb b/app/models/manageiq/providers/redhat/infra_manager/api_integration.rb index 51b2061ba8a..5bc8fa06099 100644 --- a/app/models/manageiq/providers/redhat/infra_manager/api_integration.rb +++ b/app/models/manageiq/providers/redhat/infra_manager/api_integration.rb @@ -27,6 +27,7 @@ def connect(options = {}) # Prepare the options to call the method that creates the actual connection: connect_options = { + :scheme => options[:scheme] || 'https', :server => options[:ip] || address, :port => options[:port] || self.port, :username => options[:user] || authentication_userid(options[:auth_type]),