mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
This reverts commit 3e454bf9fd.
This commit is contained in:
1 parent
216e68186b
commit
b9cc31878b
1 file changed
+2
-4
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user