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

B #4474: fix TOPOLOGY param (#121)

Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
Carlos J. Herrera 2020-07-27 12:18:05 -04:00 committed by GitHub
parent 3a4f1d732d
commit 1202d7ccea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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