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

M #~: Fix minor to get VM hypervisor (#1854)

Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
(cherry picked from commit 104a6108a47b0cf17e2dacaa8534a05c4e2c029a)
This commit is contained in:
Sergio Betanzos 2022-03-17 17:00:11 +01:00 committed by Tino Vazquez
parent 5695b00d2b
commit 86cefb1bec
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -84,10 +84,9 @@ export const getType = (vm) =>
/**
* @param {VM} vm - Virtual machine
* @returns {string} Resource hypervisor
* @returns {string} VM hypervisor from latest history record
*/
export const getHypervisor = (vm) =>
String(getLastHistory(vm)?.VM_MAD).toLowerCase()
export const getHypervisor = (vm) => getLastHistory(vm)?.VM_MAD
/**
* @param {VM} vm - Virtual machine