1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-26 10:03:37 +03:00

F #~: Clear Tag remote display (#1552)

This commit is contained in:
Carlos J. Herrera 2021-11-04 05:16:38 -04:00 committed by GitHub
parent 03e93e8ea5
commit 51af5a24a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -493,10 +493,11 @@ class OneVcenterHelper < OpenNebulaHelper::OneHelper
keys_to_remove = []
vm['config.extraConfig'].each do |extraconfig|
if extraconfig.key.include?('opennebula.disk') ||
extraconfig.key.include?('opennebula.vm')
keys_to_remove << extraconfig.key
end
next unless extraconfig.key.include?('opennebula.disk') ||
extraconfig.key.include?('opennebula.vm') ||
extraconfig.key.downcase.include?('remotedisplay')
keys_to_remove << extraconfig.key
end
[vm, keys_to_remove]