mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
(cherry picked from commit fa4df3290e385e84fcba2d1e13e64f0f838aeead)
This commit is contained in:
parent
248b750945
commit
512da1ee67
@ -83,7 +83,10 @@ class VIHelper
|
||||
one_managed = one_managed.nil? || one_managed
|
||||
pool = one_pool(the_class, false) if pool.nil?
|
||||
@ref_hash ||= {}
|
||||
@ref_hash[attribute] ||= create_ref_hash(attribute, pool)
|
||||
|
||||
if @ref_hash[attribute].nil? || @ref_hash[attribute] == {}
|
||||
@ref_hash[attribute] = create_ref_hash(attribute, pool)
|
||||
end
|
||||
|
||||
e = @ref_hash[attribute][ref]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user