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 (#2931)

to the http request path

Signed-off-by: Marco Mancini <mmancini@opennebula.io>
This commit is contained in:
Marco Mancini 2024-02-09 11:27:12 +01:00 committed by GitHub
parent 97be50e090
commit 53cf448674
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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