From b9cc31878b2ba511883a0133d44140b3e327e373 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Fri, 12 Jan 2018 15:15:29 +0100 Subject: [PATCH] Revert "B #1598: find_by_ref take account of vcenter_uuid (#1603)" This reverts commit 3e454bf9fd9cc9e6c7def01e7c0c73c229b42dd2. --- src/vmm_mad/remotes/lib/vcenter_driver/vi_helper.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/vmm_mad/remotes/lib/vcenter_driver/vi_helper.rb b/src/vmm_mad/remotes/lib/vcenter_driver/vi_helper.rb index 69fabc62ef..5ff25a2c7f 100644 --- a/src/vmm_mad/remotes/lib/vcenter_driver/vi_helper.rb +++ b/src/vmm_mad/remotes/lib/vcenter_driver/vi_helper.rb @@ -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]