1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B 5768: Fix oneflow client adding uri prefix path to the http request path (#2928)

Signed-off-by: Marco Mancini <mmancini@opennebula.io>
(cherry picked from commit 1b0a0a5aea248a8ec213c4422f6e941724776258)
This commit is contained in:
Marco Mancini 2024-02-07 20:01:49 +01:00 committed by Tino Vázquez
parent f5c2da57ba
commit c555daaf69
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -461,6 +461,10 @@ module Service
req['User-Agent'] = @user_agent
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