1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Revert "B #1598: find_by_ref take account of vcenter_uuid (#1603)"

This reverts commit 3e454bf9fd9cc9e6c7def01e7c0c73c229b42dd2.
This commit is contained in:
Tino Vazquez 2018-01-12 15:15:29 +01:00
parent 216e68186b
commit b9cc31878b

View File

@ -55,12 +55,10 @@ class VIHelper
end
end
def self.create_ref_hash(attribute, pool, vcenter_uuid)
def self.create_ref_hash(attribute, pool)
hash = {}
pool.each_element(Proc.new do |e|
next if vcenter_uuid != e["TEMPLATE/VCENTER_INSTANCE_ID"]
ref = e[attribute]
hash[ref] = {
opennebula_object: e,
@ -87,7 +85,7 @@ class VIHelper
@ref_hash ||= {}
if @ref_hash[attribute].nil? || @ref_hash[attribute] == {}
@ref_hash[attribute] = create_ref_hash(attribute, pool, vcenter_uuid)
@ref_hash[attribute] = create_ref_hash(attribute, pool)
end
e = @ref_hash[attribute][ref]