mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 03:42:52 +09:00
(cherry picked from commit fa4df3290e)
This commit is contained in:
1 parent
248b750945
commit
512da1ee67
1 file changed
+4
-1
@@ -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]
|
||||
|
||||
|
||||
Reference in new issue
Block a user