1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #4474: fix TOPOLOGY param (#121)

Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
(cherry picked from commit 1202d7cceafd8b3bb857ac78701823ad043d22d8)
This commit is contained in:
Carlos J. Herrera 2020-07-27 12:18:05 -04:00 committed by Tino Vazquez
parent 1e917cb0bf
commit d1edcabac5
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -1267,7 +1267,7 @@ module VCenterDriver
:extraConfig => extraconfig,
:deviceChange => device_change
}
num_cores = one_item["TOPOLOGY/CORES"] || num_cpus.to_i
num_cores = one_item["TEMPLATE/TOPOLOGY/CORES"] || num_cpus.to_i
if num_cpus.to_i % num_cores.to_i != 0
num_cores = num_cpus.to_i
end