1
0
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:
Daniel Molina 2015-07-02 17:36:03 +02:00
parent 8b36ef0a09
commit ff50d6ee58

View File

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