Revision 175b3129 src/oca/ruby/OpenNebula.rb

View differences:

src/oca/ruby/OpenNebula.rb
101 101
            else
102 102
                @one_endpoint="http://localhost:2633/RPC2"
103 103
            end
104
            
105
            @server=XMLRPC::Client.new2(@one_endpoint)
104 106
        end
105 107

  
106 108
        def call(action, *args)
107
            server=XMLRPC::Client.new2(@one_endpoint)
109
            server=@server
110
            
108 111
            if XMLPARSER
109 112
                server.set_parser(XMLRPC::XMLParser::XMLStreamParser.new)
110 113
            end

Also available in: Unified diff