1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

feature #201: changed remove_host client call

This commit is contained in:
Ruben S. Montero 2010-07-11 20:20:04 +02:00
parent acc461fdfa
commit 3c01aecab8

View File

@ -53,23 +53,22 @@ module OpenNebula
def delete()
super(CLUSTER_METHODS[:delete])
end
def add_host(host_id)
return Error.new('ID not defined') if !@pe_id
rc = @client.call(CLUSTER_METHODS[:addhost], host_id.to_i, @pe_id)
rc = nil if !OpenNebula.is_error?(rc)
return rc
return rc
end
def remove_host(host_id)
return Error.new('ID not defined') if !@pe_id
# rc = @client.call(CLUSTER_METHODS[:removehost], host_id.to_i)
rc = @client.call(CLUSTER_METHODS[:removehost], host_id.to_i, @pe_id)
rc = @client.call(CLUSTER_METHODS[:removehost], host_id.to_i)
rc = nil if !OpenNebula.is_error?(rc)
return rc
end
end