mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
feature #3748: conf param for xmlrpc endpoint
This commit is contained in:
parent
8b36ef0a09
commit
ff50d6ee58
@ -112,7 +112,7 @@ before do
|
||||
if auth.provided? && auth.basic?
|
||||
username, password = auth.credentials
|
||||
|
||||
@client = OpenNebula::Client.new("#{username}:#{password}")
|
||||
@client = OpenNebula::Client.new("#{username}:#{password}", conf[:one_xmlrpc])
|
||||
else
|
||||
error 401, "A username and password must be provided"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user