1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-31 01:47:11 +03:00

B #6142: Add default zone in federation (#2514)

This commit is contained in:
Jorge Miguel Lobo Escalona 2023-02-21 18:09:24 +01:00 committed by GitHub
parent ebc4070b10
commit 7c38bd3493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -539,7 +539,7 @@ const getDataZone = (zone = '0', configuredZones) => {
if (zones && Array.isArray(zones)) {
rtn = zones[0]
if (Number.isInteger(parseInt(zone, 10))) {
rtn = zones.find((zn) => zn && zn.id && String(zn.id) === zone)
rtn = zones.find((zn) => zn && zn.id && String(zn.id) === String(zone))
}
}