From 15c965f5d83828189d59d041fc95a325efa1a7b6 Mon Sep 17 00:00:00 2001 From: Juan Hernandez Date: Fri, 3 Mar 2017 14:29:22 +0100 Subject: [PATCH] Always pass the URL path to the oVirt SDK Currently the 'path' component of the URL is not always explicitly passed to the constructor of the oVirt SDK connection, it is only passed if explicitly provided by the caller. This patch changes the oVirt provider so that the path is always passed, taking it from the endpoint table if not explicitly provided by the caller. 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..f7121585180 100644 --- a/app/models/manageiq/providers/redhat/infra_manager/api_integration.rb +++ b/app/models/manageiq/providers/redhat/infra_manager/api_integration.rb @@ -29,6 +29,7 @@ def connect(options = {}) connect_options = { :server => options[:ip] || address, :port => options[:port] || self.port, + :path => path, :username => options[:user] || authentication_userid(options[:auth_type]), :password => options[:pass] || authentication_password(options[:auth_type]), :service => options[:service] || "Service",