mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
bug #697: Remove duplicated functionality in OCA
This commit is contained in:
parent
6a4687bb0f
commit
86dd81fda4
@ -60,8 +60,6 @@ module OpenNebula
|
||||
# Class constructor
|
||||
def initialize(xml, client)
|
||||
super(xml,client)
|
||||
|
||||
@client = client
|
||||
end
|
||||
|
||||
#######################################################################
|
||||
@ -75,7 +73,7 @@ module OpenNebula
|
||||
end
|
||||
|
||||
msg = String.new
|
||||
|
||||
|
||||
File.open(filename).each_line{ |l|
|
||||
next if l.match(/^#/)
|
||||
|
||||
|
@ -33,7 +33,6 @@ module OpenNebula
|
||||
@element_name = element.upcase
|
||||
|
||||
@client = client
|
||||
@hash = nil
|
||||
end
|
||||
|
||||
# Default Factory Method for the Pools. The factory method returns an
|
||||
@ -48,7 +47,7 @@ module OpenNebula
|
||||
#######################################################################
|
||||
# Common XML-RPC Methods for all the Pool Types
|
||||
#######################################################################
|
||||
|
||||
|
||||
#Gets the pool without any filter. Host, Group and User Pools
|
||||
# xml_method:: _String_ the name of the XML-RPC method
|
||||
def info(xml_method)
|
||||
@ -66,7 +65,7 @@ module OpenNebula
|
||||
def info_group(xml_method)
|
||||
return xmlrpc_info(xml_method,INFO_GROUP,-1,-1)
|
||||
end
|
||||
|
||||
|
||||
def info_filter(xml_method, who, start_id, end_id)
|
||||
return xmlrpc_info(xml_method,who, start_id, end_id)
|
||||
end
|
||||
@ -120,7 +119,6 @@ module OpenNebula
|
||||
def initialize(node, client)
|
||||
@xml = node
|
||||
@client = client
|
||||
@hash = nil
|
||||
|
||||
if self['ID']
|
||||
@pe_id = self['ID'].to_i
|
||||
|
@ -107,9 +107,6 @@ module OpenNebula
|
||||
# Class constructor
|
||||
def initialize(xml, client)
|
||||
super(xml,client)
|
||||
|
||||
@element_name = "VM"
|
||||
@client = client
|
||||
end
|
||||
|
||||
#######################################################################
|
||||
|
@ -62,8 +62,6 @@ module OpenNebula
|
||||
# Class constructor
|
||||
def initialize(xml, client)
|
||||
super(xml,client)
|
||||
|
||||
@client = client
|
||||
end
|
||||
|
||||
#######################################################################
|
||||
@ -81,7 +79,7 @@ module OpenNebula
|
||||
def allocate(description)
|
||||
super(VN_METHODS[:allocate],description)
|
||||
end
|
||||
|
||||
|
||||
# Replaces the template contents
|
||||
#
|
||||
# +new_template+ New template contents
|
||||
|
@ -31,7 +31,7 @@ module OpenNebula
|
||||
#######################################################################
|
||||
# Class constructor & Pool Methods
|
||||
#######################################################################
|
||||
|
||||
|
||||
# +client+ a Client object that represents a XML-RPC connection
|
||||
# +user_id+ is to refer to a Pool with VirtualNetworks from that user
|
||||
def initialize(client, user_id=0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user