Revision 3ccedecb src/oca/ruby/OpenNebula/Pool.rb

View differences:

src/oca/ruby/OpenNebula/Pool.rb
48 48
        # Common XML-RPC Methods for all the Pool Types
49 49
        #######################################################################
50 50

  
51
        # Common client call wrapper. Returns nil instead of the response
52
        # if it is successful
53
        #
54
        # @param [String] xml_method xml-rpc method
55
        # @param [Array] args any arguments for the xml-rpc method
56
        #
57
        # @return [nil, OpenNebula::Error] nil in case of success, Error
58
        #   otherwise
59
        def call(xml_method, *args)
60
            rc = @client.call(xml_method, *args)
61
            rc = nil if !OpenNebula.is_error?(rc)
62

  
63
            return rc
64
        end
65

  
66 51
        #Gets the pool without any filter. Host, Group and User Pools
67 52
        # xml_method:: _String_ the name of the XML-RPC method
68 53
        def info(xml_method)

Also available in: Unified diff