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:
parent
79f28474e5
commit
47675567a2
@ -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"]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user