1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-25 06:03:36 +03:00

B #3430: Do not return tainted key reference

If the element to be retrieved from the vCenter cache does not
have a reference, return nil, and not a tainted vCenter uuid reference
This commit is contained in:
Tino Vazquez 2019-06-18 17:17:22 +02:00
parent 79f28474e5
commit 47675567a2
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -133,6 +133,8 @@ class VIHelper
def self.get_ref_key(element, attribute, vcenter_uuid = nil)
key = element[attribute]
return nil if key.nil?
tvid = element["TEMPLATE/VCENTER_INSTANCE_ID"]
uvid = element["USER_TEMPLATE/VCENTER_INSTANCE_ID"]