1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-10 13:57:22 +03:00

feature #661: Fix to_id method error

This commit is contained in:
Daniel Molina 2011-06-14 15:32:47 +02:00
parent 8054196be7
commit cd10967d2a

View File

@ -156,7 +156,7 @@ EOT
pool = factory_pool(user_flag)
poolname = self.class.rname
id_to_name(name, pool, poolname)
self.class.id_to_name(name, pool, poolname)
end
def self.to_id_desc
@ -223,8 +223,6 @@ EOT
end
end
private
def self.id_to_name(name, pool, ename)
rc = pool.info
return -1, rc.message if OpenNebula.is_error?(rc)
@ -244,6 +242,8 @@ EOT
return 0, result
end
private
def retrieve_resource(id)
resource = factory(id)