diff --git a/src/oca/ruby/opennebula/oneflow_client.rb b/src/oca/ruby/opennebula/oneflow_client.rb index b5af0c5e26..5c26be7578 100644 --- a/src/oca/ruby/opennebula/oneflow_client.rb +++ b/src/oca/ruby/opennebula/oneflow_client.rb @@ -454,11 +454,14 @@ module Service req['User-Agent'] = @user_agent - res = CloudClient::http_start(@uri, @timeout) do |http| + if !@uri.path.nil? + req.instance_variable_set(:@path, @uri.path + req.path) + end + + CloudClient.http_start(@uri, @timeout) do |http| http.request(req) end - res end end end