feature #3748: conf param for xmlrpc endpoint

This commit is contained in:
Daniel Molina committed 2015-07-02 18:28:28 +02:00
1 parent 8b36ef0a09
commit ff50d6ee58
1 file changed
+1 -1
+1 -1
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