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:
parent
97be50e090
commit
53cf448674
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user