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:
parent
f5c2da57ba
commit
c555daaf69
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user