mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
M #~: Fix minor to get VM hypervisor (#1854)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
This commit is contained in:
parent
1154d568c3
commit
104a6108a4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user