1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-22 17:57:46 +03:00

OCA does not create http object each call

This commit is contained in:
Javi Fontan 2010-09-01 11:57:35 +02:00
parent 0e82717166
commit 175b312915

View File

@ -101,10 +101,13 @@ module OpenNebula
else
@one_endpoint="http://localhost:2633/RPC2"
end
@server=XMLRPC::Client.new2(@one_endpoint)
end
def call(action, *args)
server=XMLRPC::Client.new2(@one_endpoint)
server=@server
if XMLPARSER
server.set_parser(XMLRPC::XMLParser::XMLStreamParser.new)
end