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:
parent
0e82717166
commit
175b312915
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user